forked from mechanicles/set_as_primary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 852 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
---
sudo: true
env:
global:
- CC_TEST_REPORTER_ID=353b5634de390dad574939f59c2ef3798b81f06df548f7bdd11cd8225be484f3
language: ruby
rvm:
- 2.5.3
gemfile:
- Gemfile
- test/gemfiles/activerecord52.gemfile
- test/gemfiles/activerecord42.gemfile
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 rake
after_script:
- ./cc-test-reporter after-build --debug --exit-code $TRAVIS_TEST_RESULT
services:
- postgresql
- mysql
addons:
postgresql: 10
before_install:
- mysqladmin create set_as_primary_test
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
- createdb set_as_primary_test
notifications:
email:
on_success: never
on_failure: change