forked from chiditarod/dogtag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (32 loc) · 978 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
33
34
35
36
37
38
39
40
41
42
43
language: ruby
sudo: false
branches:
only:
- master
cache: bundler
bundler_args: '--without development'
before_install:
- 'echo "gem: --no-ri --no-rdoc" > ~/.gemrc'
services:
- postgresql
addons:
postgresql: '9.4'
before_script:
- psql -c 'create database dogtag_test;' -U postgres
- bin/rails db:migrate RAILS_ENV=test
- 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
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- bundle exec codeclimate-test-reporter
deploy:
provider: heroku
app: dogtag-staging
on: master
api_key:
secure: kNlxn+CZBCxoo816X6tXACkkpVHBaFbduOhW3CzenY3+NOmLXJnuHClWvIc4ZzQuAWsLWAG/wrRr0hhxtxyvyT4kU4vl6X9RsEDMKLT+W6tnoJcIUdymxYK4Iaz8bYkXHQw0iMg5N7NPiT9JXcWTPfVb1fKqfD82oln7r6arLGI=
run:
- 'sleep 30'
- 'bin/rais db:migrate'