Skip to content

Commit

Permalink
Improve continuous integration
Browse files Browse the repository at this point in the history
- Install meteor
- Cache meteor installation
- Run tests
- Run eslint as a pretest step
- Inspired by https://github.com/RocketChat/Rocket.Chat/blob/16743fb2c80f575fd2021d42ac5e31df76db128f/.travis.yml
  • Loading branch information
mauriciovieira committed Apr 11, 2017
1 parent 8b2e856 commit 28a47d2
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,28 @@ branches:
services:
- docker

before_script:
- npm run-script lint
before_cache:
- rm -rf $HOME/build/apinf/platform/.meteor/local/log
- rm -rf $HOME/build/apinf/platform/.meteor/local/run
- rm -rf $HOME/build/apinf/platform/.meteor/local/db

cache:
directories:
- "$HOME/node_modules"
- "$HOME/.meteor"
- "$HOME/.npm"
- "$HOME/.node-gyp"
- "$HOME/build/apinf/platform/node_modules"
- "$HOME/build/apinf/platform/.meteor/local"

before_install:
- if [ ! -e "$HOME/.meteor/meteor" ]; then curl https://install.meteor.com | sed s/--progress-bar/-sL/g | /bin/sh; fi

install:
- export PATH="$HOME/.meteor:$PATH"

script:
- npm test

after_success:
- ./.scripts/docker_build.sh

0 comments on commit 28a47d2

Please sign in to comment.