-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 897 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
language: node_js
node_js: '8'
git:
depth: 3
branches:
only:
- master
- /^greenkeeper/.*$/
services:
- mongodb
env:
global:
- NODE_ENV=test
- PORT=3000
- JWT_SECRET=bA2xcjpf8y5aSUFsNB2qN5yymUBSs6es3qHoFpGkec75RCeBb8cpKauGefw5qy4
- JWT_EXPIRATION_MINUTES=15
- MONGO_URI=mongodb://travis:test@localhost:27017/express-es8-rest-boilerplate
- MONGO_URI_TESTS=mongodb://travis:test@localhost:27017/express-es8-rest-boilerplate
- RATE_LIMIT_TIME=1
- RATE_LIMIT_REQUEST=2000
script: yarn validate
before_install: yarn global add greenkeeper-lockfile@1
before_script:
- greenkeeper-lockfile-update
- sleep 10
- mongo express-es8-rest-boilerplate --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
after_script: greenkeeper-lockfile-upload
# deploy:
# - provider: script
# script: yarn deploy
after_success: yarn coverage