Skip to content

Commit

Permalink
Merge pull request #5941 from RocketChat/use-meteor-npm-on-travis
Browse files Browse the repository at this point in the history
use meteor npm on travis
  • Loading branch information
engelgabriel authored Feb 7, 2017
2 parents 1d2ff9f + f95becc commit fef2635
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ before_script:
echo " replSetName: \"rs0\"" | sudo tee -a /etc/mongod.conf
- sudo service mongod restart
- mkdir /tmp/build
- travis_retry npm install
- travis_retry meteor npm install
- |-
mongo --eval 'rs.initiate({_id:"rs0", members: [{"_id":1, "host":"localhost:27017"}]})'
- npm run lint
- npm run stylelint
- meteor npm run lint
- meteor npm run stylelint
- travis_retry meteor build --headless /tmp/build
- mkdir /tmp/build-test
- tar -xf /tmp/build/Rocket.Chat.tar.gz -C /tmp/build-test/
- cd /tmp/build-test/bundle/programs/server
- npm install -g node-gyp node-pre-gyp
- npm install
- meteor npm install -g node-gyp node-pre-gyp
- meteor npm install
- cd -
- mongo --eval 'rs.status()'
- mongo meteor --eval 'db.getCollectionNames()'
script:
- travis_retry npm test
- travis_retry meteor npm test
- mongo meteor --eval 'db.dropDatabase()'
- unset MONGO_OPLOG_URL
- travis_retry npm test
- travis_retry meteor npm test
before_deploy:
- source ".travis/setartname.sh"
- source ".travis/setdeploydir.sh"
Expand Down

0 comments on commit fef2635

Please sign in to comment.