-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
48 lines (37 loc) · 1.12 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: ruby
dist: xenial
os: linux
addons:
chrome: stable
env:
global:
- CC_TEST_REPORTER_ID=796169b8dd8f24e0dfbe4ce3f7c3c3f95f5ecc5475b95871f1797664f6b2b3e3
cache:
- bundler
- yarn
rvm:
- 2.5.8
- 2.6.6
- 2.7.1
- ruby-head
gemfile:
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_6_0.gemfile
jobs:
fast_finish: true
allow_failures:
- rvm: ruby-head
before_install:
- nvm install 12
- bin/yarn install
- 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
- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
- curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
- unzip chromedriver_linux64.zip -d ~/bin
- gem update --system --no-doc
- gem install bundler --no-doc
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT