-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
51 lines (51 loc) · 1.86 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
dist: trusty
language: ruby
rvm:
- 2.6.5
addons:
postgresql: 9.6
services:
- redis-server
cache:
- bundler
env:
global:
- REVISION=$(git rev-parse --short HEAD 2> /dev/null); if [ $REVISION ]; then echo
$REVISION; else echo 'unknown'; fi
branches:
only:
- release
- develop
jobs:
include:
- stage: test
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"
- cp config/database.yml.travis config/database.yml
- cp .env.example .env
- psql -c 'create database travis_ci_test;' -U postgres
script:
- bundle exec rails db:migrate RAILS_ENV=test
- bundle exec rails docs:generate
- bundle exec rspec
- echo $REVISION > REVISION
after_success:
- bundle exec codeclimate-test-reporter
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
deploy:
provider: heroku
api_key:
secure: N7k8aBwqfsc8V+F8HgImpDSG0NE64FSiOqDObAES4gPfxKA1JJODEhXOkrBwCiY66Q+RjxafqIWZzoxJB8fLIResPo6jk0MgTpE3Y11MX6T93+pGMMcmCgbNoNl3+pbduaqdsaYxvglXF/rTuvVglZTZmBdTFBYqIr1JJjgsej9aSI3/tFMlTXR1zV80vwSwAzMWhnSZDnaCmsnjJlf9FMsdKAhMp2tMQ3B2ssYQN4S+6DWfAI6Kojm3L5PHJnXMF2RxC241bOFFaH6mkFQGctNQTzXDjHHgcYEeeMA6D9b3F1o13D8sBCP9D6EhohYDAKaJlMxRB62+h/0CfyybPXU6CUgZrQ9uHsJ97SL4JjooQpdHTR/CJoMKsuV4QdrnDn73g0lts/pjymawisipIBTO3+lpYgcGaazz/TDLxobWVVq21F4lW8Tv99xSBEl4TOBASG+BhmYteq/uf/BehoNxizVc1yAQ7h0spq3vQrGuKLZWCIU5mNBIdUwZYBAwMl4jm0JolJKL4LsVQ+Qd3xBd8gY+ScoqIPo3/nja5A3uFrWcvumygDV1kCtHWupikRDeI3WTn+MaFg3R+j/qeO4hcKdph/pROuOEbQ3BZBJy9m0HqMI2scdtjLpzZrgMLWelnC69fYsOl//zWQ3aA/LIwuq7LoPolpLsZ6Xk7WY=
skip_cleanup: true
app:
develop: elplano-api
on:
branches:
- develop
run:
- rake db:migrate
- rake db:seed