-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (40 loc) · 1.25 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
language: ruby
services:
- postgresql
before_install:
- mkdir $PWD/travis-phantomjs
- curl -sSL https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2 -o $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
- phantomjs --version
before_script:
- cp config/database.yml.travis config/database.yml
- bundle exec rake db:test:prepare
- nvm install 9.11
- nvm use 9.11
- npm install -g yarn
- yarn install
script:
- bundle exec rspec
- bundle exec codeclimate-test-reporter
env:
global:
- NPM_CONFIG_PROGRESS="false"
addons:
code_climate:
repo_token: 7874401dea920ec562008f8735921e38a01ff559f4377bcedbdba1a8b54145ca
cache:
bundler: true
directories:
- node_modules
- $HOME/.yarn-cache
deploy:
provider: heroku
api_key:
secure: CHFON45m9nMNIeVqKbAnGu3yRRHPQMr9rOYtXQIqPWX/I/xg1WBOUyLWGrTLnMwxBBU4W18dmUvDh0C0USop7WrWFIzyEs2Gkm+kLEI/pwrmsi/vewS/m3WxirjYPA4xXn5eq+jE5qIa4TkKPV1DQzq1n73GvH/267I2er39XZM=
app: porkchop-prod
on:
repo: PorkChopClub/porkchop
run:
- "rake db:migrate"
- restart