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 a tagged stable branch
8 Given Tails 0.10 has been released
9 And last released version mentioned in debian/changelog is 0.10
10 And I am working on the stable branch
11 When I run tails-custom-apt-sources
12 Then I should see the '0.10' suite
14 Scenario: build from a bugfix branch for a stable release
15 Given Tails 0.10 has been released
16 And last released version mentioned in debian/changelog is 0.10
17 And I am working on the bugfix/disable_gdomap branch based on 0.10
18 When I run tails-custom-apt-sources
19 Then I should see the '0.10' suite
20 And I should see the 'bugfix-disable-gdomap' suite
22 Scenario: build from an untagged testing branch
23 Given I am working on the testing branch
24 And last released version mentioned in debian/changelog is 0.11
25 And Tails 0.11 has not been released yet
26 When I run tails-custom-apt-sources
27 Then I should see the 'testing' suite
28 And I should not see '0.11' suite
30 Scenario: build from a tagged 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 been released
34 When I run tails-custom-apt-sources
35 Then I should see the '0.11' suite
36 And I should not see 'testing' suite
38 Scenario: build a release candidate from a tagged testing branch
39 Given I am working on the testing branch
40 And Tails 0.11 has been released
41 And last released version mentioned in debian/changelog is 0.12~rc1
42 And Tails 0.12-rc1 has been tagged
43 When I run tails-custom-apt-sources
44 Then I should see the '0.12-rc1' suite
45 And I should not see 'testing' suite
47 Scenario: build from the devel branch
48 Given I am working on the devel branch
49 When I run tails-custom-apt-sources
50 Then I should see the 'devel' suite
52 Scenario: build from the experimental branch
53 Given I am working on the experimental branch
54 When I run tails-custom-apt-sources
55 Then I should see the 'experimental' suite
57 Scenario: build from a feature branch based on devel
58 Given I am working on the feature/icedove branch based on devel
59 When I run tails-custom-apt-sources
60 Then I should see the 'devel' suite
61 And I should see the 'feature-icedove' suite
63 Scenario: build from a feature branch based on devel with dots in its name
64 Given I am working on the feature/live-boot-3.x branch based on devel
65 When I run tails-custom-apt-sources
66 Then I should see the 'devel' suite
67 And I should see the 'feature-live-boot-3.x' suite