Skip to content

Commit d2e4cab

Browse files
Test Travis CI stages
1 parent 89d1027 commit d2e4cab

1 file changed

Lines changed: 29 additions & 15 deletions

File tree

β€Ž.travis.ymlβ€Ž

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,60 @@ language: generic
33
git:
44
depth: 5
55

6-
matrix:
6+
jobs:
77
include:
88

99
# ShellCheck tests on generator and sh, ksh, bash dist files
10-
- env:
10+
- stage: Static tests
11+
env:
1112
- task=shellcheck
1213
script:
1314
- shellcheck -x generator.sh
14-
- env:
15+
- stage: Static tests
16+
env:
1517
- task=shellcheck-dist-sh
1618
script:
1719
- shellcheck dist/ColorEcho.sh
18-
- env:
20+
- stage: Static tests
21+
env:
1922
- task=shellcheck-dist-ksh
2023
script:
2124
- shellcheck dist/ColorEcho.ksh
22-
- env:
25+
- stage: Static tests
26+
env:
2327
- task=shellcheck-dist-bash
2428
script:
2529
- shellcheck dist/ColorEcho.bash
2630

2731
# test all echo functions on difference shell(except sh, which is actually bash) on Mac
28-
- os: osx
32+
- stage: macOS runtime test
33+
os: osx
2934
env:
3035
- task=test-dist-zsh
3136
before_script:
3237
- brew install zsh
3338
- type zsh && zsh --version
3439
script:
3540
- ./test-scripts/zsh
36-
- os: osx
41+
- stage: macOS runtime test
42+
os: osx
3743
env:
3844
- task=test-dist-ksh
3945
before_script:
4046
- brew install ksh
4147
- type ksh && ksh --version || printf ""
4248
script:
4349
- ./test-scripts/ksh
44-
- os: osx
50+
- stage: macOS runtime test
51+
os: osx
4552
env:
4653
- task=test-dist-bash-builtin
4754
before_script:
4855
- type bash && bash --version
4956
script:
5057
- ./test-scripts/bash
51-
- os: osx
58+
- stage: macOS runtime test
59+
os: osx
5260
env:
5361
- task=test-dist-bash-brew-install
5462
before_script:
@@ -57,7 +65,8 @@ matrix:
5765
- type bash && bash --version
5866
script:
5967
- ./test-scripts/bash
60-
- os: osx
68+
- stage: macOS runtime test
69+
os: osx
6170
env:
6271
- task=test-dist-fish
6372
before_script:
@@ -67,11 +76,13 @@ matrix:
6776
- ./test-scripts/fish
6877

6978
# test all echo functions on difference shell on Linux
70-
- env:
79+
- stage: Ubuntu runtime test
80+
env:
7181
- task=test-dist-sh
7282
script:
7383
- ./test-scripts/sh
74-
- env:
84+
- stage: Ubuntu runtime test
85+
env:
7586
- task=test-dist-zsh
7687
addons:
7788
apt:
@@ -81,7 +92,8 @@ matrix:
8192
- type zsh && zsh --version
8293
script:
8394
- ./test-scripts/zsh
84-
- env:
95+
- stage: Ubuntu runtime test
96+
env:
8597
- task=test-dist-ksh
8698
addons:
8799
apt:
@@ -91,13 +103,15 @@ matrix:
91103
- type ksh && ksh --version || printf ""
92104
script:
93105
- ./test-scripts/ksh
94-
- env:
106+
- stage: Ubuntu runtime test
107+
env:
95108
- task=test-dist-bash
96109
before_script:
97110
- type bash && bash --version
98111
script:
99112
- ./test-scripts/bash
100-
- env:
113+
- stage: Ubuntu runtime test
114+
env:
101115
- task=test-dist-fish
102116
addons:
103117
apt:

0 commit comments

Comments
Β (0)