forked from codeRIT/brickhack.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 924 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
cache: bundler
sudo: false
bundler_args: --path vendor --local --without development
env:
- DATABASE_URL="mysql2://travis@localhost/myapp_test"
before_script:
- mysql -u root -e "CREATE DATABASE myapp_test;"
- mysql -u root -e "GRANT ALL PRIVILEGES ON myapp_test.* TO 'travis'@'%';";
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
- echo -e "Host csh-cloud.oweb.co\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
script:
- bin/rails db:migrate db:test:prepare
- RUN_COVERAGE=travis bin/rails test
- bin/rails coverage:report
deploy:
- provider: script
script: .travis/deploy_stage.sh
on:
branch: develop
repo: codeRIT/brickhack.io
- provider: script
script: .travis/deploy_prod.sh
on:
branch: master
repo: codeRIT/brickhack.io
addons:
code_climate:
repo_token: c13cf427384c2291d3fac2745b3b4012541adab0993853175d89f91671762ddb