-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
31 lines (31 loc) · 833 Bytes
/
.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
cache: bundler
services:
- docker
rvm:
- 2.3.7
- 2.4.4
- 2.5.1
- ruby-head
matrix:
allow_failures:
- rvm: 2.3.7
- rvm: ruby-head
fast_finish: true
before_install:
- docker build -t dummy -f spec/dummy/Dockerfile .
- docker run -d -p 127.0.0.1:9873:9873 dummy /bin/sh -c "bin/rails server -b 0.0.0.0 -p 9873"
- docker ps -a
- gem install bundler
script:
- bundle exec rspec
# Code climate test reporter
env:
global:
- CC_TEST_REPORTER_ID=6cebf6c67b6e2d8a53a608ea98ebd897f4cba357bf1e3431bfdb77ff4207399e
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
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT