I have set up a GitHub repository with Travis CI integration for my Meteor project. When I push a new build, the CI test fails with the following reason:
PackageName@ test /home/travis/build/packagename/gitname
meteor test --once --driver-package meteortesting:mochatest: You’re not in a Meteor project directory.
Here’s my .travis.yml
file:
language: node_js
node_js:
- "12.16"
cache:
before_script:
# Install meteor
- curl https://install.meteor.com | /bin/sh
# Add meteor to path (instead of asking for sudo in the Travis container)
# We can then use the faster container infrastructure - http://docs.travis-ci.com/user/workers/container-based-infrastructure/
- export PATH=$HOME/.meteor:$PATH
- npm install -g spacejam
directories:
- node_modules
How should I edit my .travis.yml
file so that the tests can be run correctly?