2 Feature: custom APT sources to build branches
3 As a Tails developer, when I build Tails, I'd be happy if
4 the proper APT sources were automatically picked depending
5 on which Git branch I am working on.
7 Scenario: build from an untagged stable branch
8 Given I am working on the stable branch
9 And last released version mentioned in debian/changelog is 1.0
10 And Tails 1.0 has not been released yet
11 When I run tails-custom-apt-sources
12 Then I should see the 'stable' suite
13 Then I should not see the '1.0' suite
15 Scenario: build from a tagged stable branch
16 Given Tails 0.10 has been released
17 And last released version mentioned in debian/changelog is 0.10
18 And I am working on the stable branch
19 When I run tails-custom-apt-sources
20 Then I should see the '0.10' suite
22 Scenario: build from a bugfix branch for a stable release
23 Given Tails 0.10 has been released
24 And last released version mentioned in debian/changelog is 0.10
25 And I am working on the bugfix/disable_gdomap branch based on 0.10
26 When I run tails-custom-apt-sources
27 Then I should see the '0.10' suite
28 And I should see the 'bugfix-disable-gdomap' suite
30 Scenario: build from an untagged testing branch
31 Given I am working on the testing branch
32 And last released version mentioned in debian/changelog is 0.11
33 And Tails 0.11 has not been released yet
34 When I run tails-custom-apt-sources
35 Then I should see the 'testing' suite
36 And I should not see the '0.11' suite
38 Scenario: build from a tagged testing branch
39 Given I am working on the testing branch
40 And last released version mentioned in debian/changelog is 0.11
41 And Tails 0.11 has been released
42 When I run tails-custom-apt-sources
43 Then I should see the '0.11' suite
44 And I should not see the 'testing' suite
46 Scenario: build a release candidate from a tagged testing branch
47 Given I am working on the testing branch
48 And Tails 0.11 has been released
49 And last released version mentioned in debian/changelog is 0.12~rc1
50 And Tails 0.12-rc1 has been tagged
51 When I run tails-custom-apt-sources
52 Then I should see the '0.12-rc1' suite
53 And I should not see the 'testing' suite
55 Scenario: build from the devel branch
56 Given I am working on the devel branch
57 When I run tails-custom-apt-sources
58 Then I should see the 'devel' suite
60 Scenario: build from the experimental branch
61 Given I am working on the experimental branch
62 When I run tails-custom-apt-sources
63 Then I should see the 'experimental' suite
65 Scenario: build from a feature branch based on devel
66 Given I am working on the feature/icedove branch based on devel
67 When I run tails-custom-apt-sources
68 Then I should see the 'devel' suite
69 And I should see the 'feature-icedove' suite
71 Scenario: build from a feature branch based on devel with dots in its name
72 Given I am working on the feature/live-boot-3.x branch based on devel
73 When I run tails-custom-apt-sources
74 Then I should see the 'devel' suite
75 And I should see the 'feature-live-boot-3.x' suite