forked from projectcypress/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.71 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
45
46
47
48
49
50
language: ruby
cache:
- bundler
- node_modules
sudo: required
dist: trusty
branches:
only:
- master
notifications:
email:
recipients:
on_failure: change
slack:
secure: NfcNb3LCyd7/ACYc6mDoBJZlBFIV5wKMMWs0On2DNeaDoD/EKCbQRQQVOHEvfsaqOM+5zmi9giYaV7cV+Gl+zfehZ/Q69x89YjWWVFeAp5QGDzoCnM7oaaTXygla52sfcL9Oi3rLgTWyjqMSS7tM2DW5d/V+iEjyilmavsUvRbU=
before_install:
- . $HOME/.nvm/nvm.sh
- nvm install 10.0
- nvm use stable
- npm install -g eslint
- git clone -b cypress_v6 https://github.com/projecttacoma/cqm-execution-service.git /tmp/cqm-execution-service
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- npm install eslint
- yarn --cwd /tmp/cqm-execution-service install --only=production
- yarn --cwd /tmp/cqm-execution-service start &
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz -O /tmp/mongodb.tgz
- tar -xvf /tmp/mongodb.tgz
- mkdir /tmp/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --setParameter cursorTimeoutMillis=3600000 --setParameter maxBSONDepth=500 --dbpath /tmp/data --bind_ip 127.0.0.1 &> /dev/null &
- cp ./.travis/mongoid.yml ./config/mongoid.yml
env:
global:
- MONGODB=4.0.18
matrix:
- TEST_SUITE=audit
- TEST_SUITE=cucumber
- TEST_SUITE=units
script:
- 'if [ ${TEST_SUITE} = "audit" ]; then
bundle exec bundle-audit check --update &&
bundle exec overcommit --sign &&
bundle exec overcommit --run;
elif [ ${TEST_SUITE} = "cucumber" ]; then
bundle exec cucumber features/admin/ features/records/ features/users/ features/vendors/;
else
RUBYOPT="-W0" bundle exec rake test;
fi'