-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
30 lines (30 loc) · 1.06 KB
/
.travis.yml
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
language: ruby
rvm:
- 2.4.5
bundler_args: "--without production"
env:
global:
- MOZ_HEADLESS=1
- CC_TEST_REPORTER_ID=365a8b5a2c901eb95955132e18d83d677de9b5d7c02e1e86db3b1305d324ef09
- github_key=test
- github_secret=test
addons:
chrome: stable
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.19.1-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
script:
- bundle exec rspec
- "./cc-test-reporter format-coverage --output coverage/codeclimate.$SUITE.json"
- bundle exec cucumber
- "./cc-test-reporter format-coverage --output coverage/codeclimate.$SUITE.json"
after_script:
- ./cc-test-reporter sum-coverage coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT