$ npm ci
$ npx jest --ci
In the root of the repo:
$ touch .travis.yml
$ npm install --save-dev expo-cli
In the .travis.yml file:
language: node_js
node_js:
- node
- lts/*
cache:
directories:
- ~/.npm
- .jest
before_script:
- npm install -g npm@latest
script:
- npm ci
- npx jest --ci
jobs:
include:
- stage: deploy
node_js: lts/*
script:
- npm ci
- npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
- npx expo publish --non-interactive
If you don't want to expose the password in the login script:
- Set the EXPO_CLI_PASSWORD environment variable to the password
- Run the following script:
$ npx expo login --non-interactive -u
Visit TravisCI.org and click the + button next to “My Repositories” on the left pane