Skip to content
Snippets Groups Projects
Commit f95beccb authored by Gabriel Engel's avatar Gabriel Engel
Browse files

use meteor npm on travis

parent 1d2ff9f1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment