forked from IgniteUI/ignite-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (43 loc) · 2.5 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: node_js
node_js:
- '4'
script:
- grunt verify
- grunt coveralls
before_deploy:
# clone bower repo
- git config --global user.email "[email protected]"
- git config --global user.name "igniteui-deploy"
- git clone https://github.com/IgniteUI/ignite-ui-bower.git dist
# build
- echo Building ${TRAVIS_TAG}
- npm version "${TRAVIS_TAG}" --save
- grunt build
# move to dist, set git credentials
- cd dist
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
# update package versions
- npm version "${TRAVIS_TAG}" --no-git-tag-version --save
# can't skip git commit on bower version call, bower/bower#2019
# - bower version "${TRAVIS_TAG}" --save
# commit bower
- git add .
- if [ -n "$(git status --porcelain)" ]; then git commit -m "Release ${TRAVIS_TAG}"; fi
- if [ "${TRAVIS_TAG}" != "" ]; then git tag "${TRAVIS_TAG}"; fi
- git push -fq origin master --tags
# restore readme
- cp ../README.md README.md
deploy:
provider: npm
skip_cleanup: true
email: [email protected]
api_key:
secure: JeRvlOs2mLvzJHqtpVLvEtTVrZZqB4kufmz7+4RNk9XgzcSwXVbp5ZCpdYkZy/2HypJTjyryN98FuqCQo4cnmnkVS2phiejA9b9YVl3uFtCeFxGJJ4st/98UT3f7OrDgqFIh4v+MtzIS76+Erv2YmV8RBtEgoOpfCpuO5aBpi3oJR49iw8TN2dZwfyvUtb2ytMfzyR1q7xsl+Q0qYzwhX00BxVxGY6UkKF1VaRjsfGYrfC4FkpAT4u5mD+KtUMwRHGpMyQm1LYusS99+ugwOloq4gFArham/J/06tLwCXXjW/xhVH4HyQRiMZE649rl7TI/j88vZrGUKw16SQT+K/0+3sw4/BtwwlEjNiD1UIr97lRL7oF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