Skip to content

Commit 1abf4b3

Browse files
committed
Travis CI: Use "if/then" instead of "cmd && cmd" for conditional steps
1 parent 434e327 commit 1abf4b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ before_script:
3232
git fetch upstream master:master || :
3333
3434
script:
35-
- ([ "${GROUP}" = "1" ] && make tests CT_OPTS+='-verbosity 50')
36-
- ([ "${GROUP}" = "2" ] && sh ./scripts/travis_test_ocf_ra.sh)
35+
- if test "${GROUP}" = '1'; then make tests CT_OPTS+='-verbosity 50'; fi
36+
- if test "${GROUP}" = '2'; then sh ./scripts/travis_test_ocf_ra.sh; fi
3737

3838
cache:
3939
apt: true

0 commit comments

Comments
 (0)