api-client/.travis.yml

57 lines
1.1 KiB
YAML
Raw Normal View History

# == INSTRUCTIONS FOR SETTING UP TRAVIS (and GitHub Pages) ==
#
# 1. Find this repository in your Travis-CI dashboard.
# open settings and add an environment variable called
# GITHUB_ACCESS_TOKEN and set it to your personal access token.addons:
# See: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
#
# **DO NOT TURN ON 'Display value in build log'!!!!**
#
# 2. Push the code to the repository.
2019-08-24 16:27:46 +00:00
# 3. Set the GitHub Pages source in the GitHub repository settings to the
# gh-pages branch.
2019-08-21 13:18:20 +00:00
language: node_js
node_js:
2020-01-25 01:30:07 +00:00
- "12"
os: linux
2019-10-04 00:47:41 +00:00
addons:
2020-01-25 01:30:07 +00:00
apt:
packages:
- libgconf-2-4 # cypress binary dependency
2019-10-04 00:47:41 +00:00
env:
2020-01-25 01:30:07 +00:00
- DEPLOY_ENV=POSTWOMAN_IO
cache:
2020-01-25 01:30:07 +00:00
npm: true
directories:
- "node_modules"
- ~/.cache
branches:
2020-01-25 01:30:07 +00:00
only:
- "master"
install:
2020-01-25 01:30:07 +00:00
- "npm install firebase-tools"
- "npm install"
2019-10-03 09:58:45 +00:00
2019-10-04 00:47:41 +00:00
before_script:
- "npm run build" # use nuxt build and start to run tests
2020-01-25 01:30:07 +00:00
- "npm run test"
2019-10-04 00:47:41 +00:00
2019-10-03 09:58:45 +00:00
script:
2020-01-25 01:30:07 +00:00
- "cd functions"
- "npm install"
- "cd .."
- "npm run generate"
2019-08-21 13:18:20 +00:00
notifications:
webhooks: https://www.travisbuddy.com
2019-10-03 09:46:39 +00:00
after_success:
- firebase deploy --token $FIREBASE_TOKEN