forked from zilverline/sequent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 1.07 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
language: ruby
env:
matrix:
- "ACTIVE_STAR_VERSION='~> 4.2'"
- "ACTIVE_STAR_VERSION='~> 5.1.0'"
global:
- CC_TEST_REPORTER_ID=90d155b5365c78e09124561d299cb88a6da9ea595e3d2f7c2cff68dfb5100599
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
- COVERAGE=true
rvm:
- 2.2.2
- 2.3.4
matrix:
exclude:
- rvm: 2.1.5
env: "ACTIVE_STAR_VERSION='~> 5.1.0'"
addons:
postgresql: "9.3"
before_script:
- psql -c 'CREATE USER sequent NOSUPERUSER NOCREATEDB NOCREATEROLE;' -U postgres
- psql -c 'CREATE DATABASE sequent_spec_db OWNER sequent;' -U postgres
- bundle exec rake db:create
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
script:
- bundle exec rspec
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_RUBY_VERSION" == "2.2.2" ] && [ "$ACTIVE_STAR_VERSION" == "~> 5.1.0" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi