diff options
Diffstat (limited to 'history/.travis.yml')
-rw-r--r-- | history/.travis.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/history/.travis.yml b/history/.travis.yml new file mode 100644 index 0000000..093b896 --- /dev/null +++ b/history/.travis.yml @@ -0,0 +1,26 @@ +language: node_js +node_js: node +cache: yarn +env: +- TEST_ENV=cjs BUILD_ENV=cjs +- TEST_ENV=umd BUILD_ENV=umd +- TEST_ENV=source +before_script: +- ([[ -z "$BUILD_ENV" ]] || yarn build) +script: +- yarn lint +- yarn test +jobs: + include: + - stage: Release + if: tag =~ ^v[0-9] + env: NPM_TAG=$([[ "$TRAVIS_TAG" == *-* ]] && echo "next" || echo "latest") + script: echo "Releasing $TRAVIS_TAG to npm with tag \"$NPM_TAG\" ..." + deploy: + provider: npm + skip_cleanup: true + tag: "$NPM_TAG" + email: npm@mjackson.me + api_key: "$NPM_TOKEN" + on: + tags: true |