Skip to content

Commit

Permalink
chore(travi.yml): improve travis CI (#201)
Browse files Browse the repository at this point in the history
* chore(travi.yml): Improve travis CI

* Run push event only on master

* Always upload coverage

* Add mongodb service

* Add database variables
  • Loading branch information
danielfsousa committed Oct 1, 2019
1 parent 6b59427 commit 12ab49d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
language: node_js
node_js: '8'

cache:
directories:
- ~/.npm

node_js:
- '8'
- '10'
- '12'

services:
- mongodb

git:
depth: 3

branches:
only:
- master
- /^greenkeeper/.*$/

env:
global:
- NODE_ENV=test
- PORT=3000
- JWT_SECRET=bA2xcjpf8y5aSUFsNB2qN5yymUBSs6es3qHoFpGkec75RCeBb8cpKauGefw5qy4
- JWT_EXPIRATION_MINUTES=15
- MONGO_URI=mongodb://localhost/express-rest-es2017-boilerplate
- MONGO_URI_TESTS=mongodb://localhost/express-rest-es2017-boilerplate

script: yarn validate

before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload

# deploy:
# - provider: script
# script: yarn deploy

after_success: yarn coverage

0 comments on commit 12ab49d

Please sign in to comment.