-
Notifications
You must be signed in to change notification settings - Fork 83
/
.travis.yml
63 lines (54 loc) · 2.79 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
51
52
53
54
55
56
57
58
59
60
61
62
63
language: node_js
node_js:
- '10.12.0'
sudo: required
dist: xenial
addons:
chrome: stable
services:
- xvfb
before_script:
- "export DISPLAY=:99.0"
script:
- npm run cover
after_success:
- cat ./coverage/lcov.info | 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
- if [[ "${TRAVIS_TAG}" == *"beta"* ]]; then export NPM_TAG="next"; else export NPM_TAG="latest"; fi
# 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
# tag: ${NPM_TAG}
# skip_cleanup: true
# email: [email protected]
# api_key:
# secure: TD07I9BJ4QwVrvPRqNMaDRtygpOSS2LtryzPIaIbb9fFA3ftHDkrfNk0EIkZU2E4kaLBuHS6/+ltUEcmomCq3rkZXR00Ervrnc/cQUqPNMSivFi7g8O4F9mCIkEzj6iWmgTRRUwQh10ZPeOGJjkKKnKHkVHu3n6mI7tiiVDKLvgIqQyM9MPOdcR65DVEBqktPt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