-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
31 lines (31 loc) · 923 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
dist: trusty
language: ruby
cache:
directories:
- node_modules
yarn: true
bundler: true
env:
- MONGODB=4.0.4
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- nvm install node
- nvm use node
- node -v
- npm i -g yarn
- npm i -g codecov
- yarn
- bundle install --deployment --with test --jobs=3 --retry=3
before_script:
- gem install brakeman
- gem install bundler-audit
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork
script:
- SKIP_PENDING=true IS_BETA=true bundle exec rake
- yarn jest --verbose=false
- codecov
- brakeman -q
- bundle audit --update