forked from quinn/empirical-grammar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 1.33 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
language: ruby
sudo: false
cache:
bundler: true
directories:
- client/node_modules
rvm:
- 2.3.1
script:
- npm run build:test
# - npm run lint
- bundle exec rake spec
- ps -ef | grep 'redis-server' | head -n 3 | awk '{ print $2}' | xargs kill -9 # kill the three redis instances
- bash <(curl -s https://codecov.io/bash) -cF rspec -f coverage/coverage.json
- npm run jest
- bash <(curl -s https://codecov.io/bash) -cF jest
- bundle exec brakeman -z
- bundle exec teaspoon
before_script:
- cp config/database.yml.travis config/database.yml
# run redis instances and send them to the background
- redis-server &
- redis-server --port 7654 &
- redis-server --port 6378 &
- bundle exec rake db:create
- bundle exec rake db:structure:load
# use version 7 of node instead of whatever travis uses so jest actually works
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 7.0.0
- npm install # Make use of 'postinstall' to run 'cd ./client npm install'
addons:
postgresql: "9.3"
code_climate:
repo_token: 284c330b001fc405fe9b1c8a013ebaed90e6f81b0318b2e3d0df66559dd0eb3e
env:
FOG_DIRECTORY=empirical-core-travis-test
PROGRESS_REPORT_FOG_DIRECTORY=empirical-progress-report-travis-test