summaryrefslogtreecommitdiffstats
path: root/features/build.feature
blob: 4cc0b65053d70e84842a9a6601fb1f7808c1de50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@source
Feature: custom APT sources to build branches
  As a Tails developer, when I build Tails, I'd be happy if
  the proper APT sources were automatically picked depending
  on which Git branch I am working on.

  Scenario: build from an untagged stable branch
    Given I am working on the stable branch
    And last released version mentioned in debian/changelog is 1.0
    And Tails 1.0 has not been released yet
    When I run tails-custom-apt-sources
    Then I should see the 'stable' suite
    Then I should not see the '1.0' suite

  Scenario: build from a tagged stable branch
    Given Tails 0.10 has been released
    And last released version mentioned in debian/changelog is 0.10
    And I am working on the stable branch
    When I run tails-custom-apt-sources
    Then I should see the '0.10' suite

  Scenario: build from a bugfix branch for a stable release
    Given Tails 0.10 has been released
    And last released version mentioned in debian/changelog is 0.10
    And I am working on the bugfix/disable_gdomap branch based on 0.10
    When I run tails-custom-apt-sources
    Then I should see the '0.10' suite
    And I should see the 'bugfix-disable-gdomap' suite

  Scenario: build from an untagged testing branch
    Given I am working on the testing branch
    And last released version mentioned in debian/changelog is 0.11
    And Tails 0.11 has not been released yet
    When I run tails-custom-apt-sources
    Then I should see the 'testing' suite
    And I should not see the '0.11' suite

  Scenario: build from a tagged testing branch
    Given I am working on the testing branch
    And last released version mentioned in debian/changelog is 0.11
    And Tails 0.11 has been released
    When I run tails-custom-apt-sources
    Then I should see the '0.11' suite
    And I should not see the 'testing' suite

  Scenario: build a release candidate from a tagged testing branch
    Given I am working on the testing branch
    And Tails 0.11 has been released
    And last released version mentioned in debian/changelog is 0.12~rc1
    And Tails 0.12-rc1 has been tagged
    When I run tails-custom-apt-sources
    Then I should see the '0.12-rc1' suite
    And I should not see the 'testing' suite

  Scenario: build from the devel branch
    Given I am working on the devel branch
    When I run tails-custom-apt-sources
    Then I should see the 'devel' suite

  Scenario: build from the experimental branch
    Given I am working on the experimental branch
    When I run tails-custom-apt-sources
    Then I should see the 'experimental' suite

  Scenario: build from a feature branch based on devel
    Given I am working on the feature/icedove branch based on devel
    When I run tails-custom-apt-sources
    Then I should see the 'devel' suite
    And I should see the 'feature-icedove' suite

  Scenario: build from a feature branch based on devel with dots in its name
    Given I am working on the feature/live-boot-3.x branch based on devel
    When I run tails-custom-apt-sources
    Then I should see the 'devel' suite
    And I should see the 'feature-live-boot-3.x' suite