-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
29 lines (26 loc) · 977 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
language: ruby
rvm:
- 3.1.2
services:
- postgresql
addons:
postgresql: 9.6
env:
global:
- CC_TEST_REPORTER_ID=a3be7f7e518ebe5830293ad0074d606bba62df942679ee11e210e25ed749cf3b
- GATEWAY_URL=http://localhost:9000
- MICROSERVICE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
- API_VERSION=v1
- RAILS_ENV=test
- SECRET_KEY_BASE=secret
- RW_API_URL=https://api.resourcewatch.org
- APIGATEWAY_URL=https://production-api.globalforestwatch.org
before_script:
- RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load
- 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 rspec spec --fail-fast
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT