Skip to content

Commit eef449d

Browse files
author
regic
committed
Use different approach
1 parent 0a0444e commit eef449d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,21 @@ before_script:
1818

1919
jobs:
2020
allow_failures:
21-
- name: test
21+
- stage: test
2222
include:
2323
- stage: test
24-
name: test
25-
script: bundle exec rspec && /tmp/coverage/cc-test-reporter format-coverage -t simplecov -o /tmp/coverage/codeclimate.rspec.json && if [ "$TRAVIS_TEST_RESULT" == 1 ]; then touch /tmp/coverage/fail; fi
24+
script: bundle exec rspec && /tmp/coverage/cc-test-reporter format-coverage -t simplecov -o /tmp/coverage/codeclimate.rspec.json && if [[ "$TRAVIS_TEST_RESULT" == 1 ]]; then touch /tmp/coverage/fail && echo "FAAAAIL" && exit 1; else echo "PAAAS"; fi
2625
workspaces:
2726
create:
2827
name: rspec
2928
paths: /tmp/coverage
3029
- stage: test
31-
name: test
32-
script: bundle exec cucumber && /tmp/coverage/cc-test-reporter format-coverage -t simplecov -o /tmp/coverage/codeclimate.cucumber.json && if [ "$TRAVIS_TEST_RESULT" == 1 ]; then touch /tmp/coverage/fail; fi
30+
script: bundle exec cucumber && /tmp/coverage/cc-test-reporter format-coverage -t simplecov -o /tmp/coverage/codeclimate.cucumber.json && if [[ "$TRAVIS_TEST_RESULT" == 1 ]]; then touch /tmp/coverage/fail && echo "FAAAAIL" && exit 1; else echo "PAAAS"; fi
3331
workspaces:
3432
create:
3533
name: cucumber
3634
paths: /tmp/coverage
3735
- stage: codeclimate
38-
name: codeclimate
3936
git:
4037
clone: false
4138
language: minimal
@@ -47,5 +44,5 @@ jobs:
4744
use:
4845
- rspec
4946
- cucumber
50-
script: cd /tmp/coverage && ./cc-test-reporter sum-coverage codeclimate.*.json -p 2 -o codeclimate.json && ./cc-test-reporter upload-coverage -i codeclimate.json && if [ -f /tmp/coverage/fail ]; then exit 1; fi
47+
script: cd /tmp/coverage && ls -alFX && ./cc-test-reporter sum-coverage codeclimate.*.json -p 2 -o codeclimate.json && ./cc-test-reporter upload-coverage -i codeclimate.json && if [ -f /tmp/coverage/fail ]; then echo "FFAAIILL"; exit 1; else echo "PPAASSSS"; fi
5148
# if: branch = master

0 commit comments

Comments
 (0)