scratch-l10n/.travis.yml
chrisgarrity 475aee4a65 Automate and switch to reviewed
* Add travis deploy step for cron job to update automatically.
* switch to reviewed translations
* make update script check for non-zero return codes from the update and test.
2018-12-06 11:45:45 -05:00

31 lines
771 B
YAML

language: node_js
node_js:
- 8
- node
cache:
directories:
- node_modules
jobs:
include:
- stage: npm release
if: branch = master OR branch = npm-publish
node_js: 8
script: npm run build
before_deploy:
- VPKG=$($(npm bin)/json -f package.json version)
- export VERSION=${VPKG/%?/}$(date +%Y%m%d%H%M%S)
- npm --no-git-tag-version version $VERSION
deploy:
- provider: script
skip_cleanup: true
script: npm run update
on:
branch: master
condition: $TRAVIS_EVENT_TYPE == cron
- provider: npm
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
on:
all_branches: true
condition: $TRAVIS_EVENT_TYPE != cron