-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
27 lines (27 loc) · 1.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: node_js
node_js: node
cache: npm
env:
- TEST_ENV=cjs BUILD_ENV=cjs
- TEST_ENV=umd BUILD_ENV=umd
- TEST_ENV=source
before_script:
- ([[ -z "$BUILD_ENV" ]] || npm run build)
script:
- npm run lint
- npm 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: [email protected]
api_key:
secure: MFaqOpSZdobIVroJ7Y7BG2/ET9T+0Mf92fST/6Wguw2kbyHXs120Jjw/GsAIMdz0kXF9yx+kg7NNkAyqoUtvWMF542cCoMMwHYLC/MGiPwOZVF/EQjSQmj4ypYm+78Bb+4AaIiGoLfF7IW8r9Faq8OLdtiS5CoHLuXC8UcfmpKZJzqZ3AGXzNMjUZVJZ5t2v/ATQGBVt7FyWkASn7kaso1e3k+BlMVgXcGfC4xVaf4wof3UJsQEO0vjRCPUhyA1anhwo+AGD7fEL8SjjirogGCzPKpZyOfjFK/cDMIMKOlc4X7fy+OY1wZhX7v6T6VSVtNP66orQF/WfTNUdwVWWonsvYV/3wL395ND37lh4xA4cNl7WuFvHeyOLL+3kWwg1nsAu+O+9acXlMnfoIQmUDTL3U0s/E1/964e1FFRWaNXtmj2PBwtHj8/C1UG9kqlFWk24jRNhFRqVqrzOjEjSjt4dghFba/8j6Az99km8Vrl1jXekk+JU8AtQjVRclKQbDAhSvo4C+HCQ8ioNc5JhnttKJty+ll+QOTB0BgEbUBO4WME+zIeG66oGH1Y+4eBiD8SZK2/OqHIhNk3ICFyHV/56SkuaRTi3ou01q2N+8Wmo5QsN/N2+lSpZ4Et/Y3GFrPQycokSzLVHY7pOiBiTYD71xYQFa7SnQvduPUtSDIY=
on:
tags: true