forked from DivanteLtd/anonymizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (25 loc) · 722 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
32
language: ruby
env:
global:
- CC_TEST_REPORTER_ID=754ef1da9d8f9c514b6f9a97c92620c9f7e3bcd5df21e5792cee16e57bcd6c4b
rvm:
- 2.2
- 2.3
- 2.4
services:
- docker
sudo: required
before_install:
- sudo service mysql stop
- docker --version
- docker-compose --version
- docker-compose -f dev/travis/docker-compose.mysql.yml up -d
- 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:
- cp config/env/sample.yml config/env/development.yml
- bundle exec rubocop
- bundle exec rspec spec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT