forked from armandofox/audience1st
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 1.15 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
31
language: ruby
rvm:
- 2.6.6
sudo: false
cache: bundler
bundler_args: --without production
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- CC_TEST_REPORTER_ID=c2b95b25d30ce5fa83d28309f1857d559be106347c00705aeb5325bc10c46935
- CCTR=/tmp/cc-test-reporter
before_install:
- phantomjs --version
- export TZ=America/Los_Angeles
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > $CCTR
- chmod +x $CCTR
- $CCTR before-build
- gem install bundler --version=1.17.2
- bundle config build.nokogiri --use-system-libraries
script:
- cp config/database.yml.test config/database.yml
- gpg --passphrase "$GPG_SYMMETRIC_KEY" -d -o config/application.yml config/application.yml.asc
- bundle exec rake db:setup
- bundle exec cucumber --retry 1 --format progress
- $CCTR format-coverage --output coverage/codeclimate.$SUITE.json
- bundle exec rspec --format progress
- $CCTR format-coverage --output coverage/codeclimate.$SUITE.json
after_script:
- $CCTR sum-coverage coverage/codeclimate.*.json | $CCTR upload-coverage
- $CCTR after-build --exit-code $TRAVIS_TEST_RESULT
- rm -f config/application.yml