-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
52 lines (44 loc) · 989 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
44
45
46
47
48
49
50
51
52
language: ruby
script:
- bundle exec rails webpacker:compile
- bundle exec rails spec
env:
global:
- SENDGRID_PASSWORD=123
- SENDGRID_USERNAME=123
- DEVISE_SECRET_KEY=123
- SECRET_TOKEN=123
- MONGO_URI=localhost:27017
- REDIS_URL=redis://localhost:6379
- RAILS_ENV=test
- NODE_ENV=test
branches:
only:
- master
rvm:
- 2.5.5
cache:
bundler: true
directories:
- node_modules
yarn: true
install:
- bundle install
- nvm install node
- node -v
- npm i -g yarn
- yarn
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
services:
- mongodb
- redis
before_install:
- gem uninstall bundler
- gem install bundler --version '1.7.3'
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- bundle exec codeclimate-test-reporter