forked from neinteractiveliterature/intercode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (44 loc) · 1.38 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
language: ruby
sudo: false
branches:
only:
- master
rvm:
- 2.4.2
bundler_args: "--without development:production:intercode1_import"
cache:
bundler: true
directories:
- node_modules
- public/packs-test
yarn: true
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
- nvm install
- npm install --global yarn
- yarn install
- cp config/database.yml.ci config/database.yml
- bin/rake db:create db:migrate RAILS_ENV=test
script:
- bin/rake test
- ./cc-test-reporter format-coverage --output coverage/codeclimate.ruby.json
- yarn run test
- ./cc-test-reporter format-coverage --output coverage/codeclimate.js.json
notifications:
slack:
secure: Ca/xHuvVik0EfevEAmMuLH+Ybd2yj7FuYsSmxJ/4dyxisuKg+tUvnJEZxnrU/QtHOdSyIh3ZAA4gVHd8PALuJ0HYOjotogqCZaQ0ZYTB7pKVvxc8u8YK7aY3P58guib7SrU3iRXsvjaV5xOflaBY4Ng1TQrkc8TCU4i8xZhWxWc=
env:
global:
- CC_TEST_REPORTER_ID=2ec5e525d523a261ed68d45eb18865e8ea7a5b32751290cabde2d44f39e78cce
matrix:
- DATABASE=sqlite
- DATABASE=mysql
- DATABASE=postgresql
addons:
code_climate:
repo_token: 2ec5e525d523a261ed68d45eb18865e8ea7a5b32751290cabde2d44f39e78cce
after_success:
- ./cc-test-reporter sum-coverage coverage/codeclimate.*.json
- ./cc-test-reporter upload-coverage