forked from IgniteUI/help-samples-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.36 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
language: node_js
node_js:
- '4'
script:
# clone gh-pages
- git clone -b master https://${GH_TOKEN}@${TARGET_REPO} dist
# wipe content in target folder
- rm -rf dist/${TRAVIS_BRANCH}
# build
- gulp build-samples --version ${TRAVIS_BRANCH} --ignite-ui ${IGNITE_ROOT}
# move to dist, set git credentials
- cd dist
- git config user.email "[email protected]"
- git config user.name "igniteui-deploy"
# commit
- git add --all
- if [ -n "$(git status --porcelain)" ]; then git commit -m "Samples for ${TRAVIS_BRANCH} ${TRAVIS_TAG}"; fi
- git push -fq origin master --tags
# whitelist match only xx.x version branches
branches:
only:
- /^\d+\.\d$/
env:
global:
# GH_TOKEN=
secure: b4FdTzLJVRj3GMPLtrKmOxDRAcmvpxSER8gZ9NNd86FyCvOlEUnS/kDmEbYXkfTmmF3ZHCz5EcfSbAR50HH4MRavo2uzb+raLVFOJ35a5y+SjjWUH7XHQVNBBLXJjH4nvjumzOdLjlN57r8uUcGuTWORRYSSLvp8SRx26SNot6adU7ifixlybvHHLCyUEcfUH2bv6vpSKrv2X8bWFZIePIG5WJnY4ZhinEmiOP1h385utFU+6L9ZYbtkYQrAi4veR1uoimDEe/gzyVIVni6qqv+gU2vDwMu8iqw8JuBBsWWJy73KuHDOkWDw1+mXdJwwQcU/jvKLmUt10+MqSiqc47jLJJ4F8TbweiaSlFb3h40E48pah5Fl5tpl8eL2OZ3F8uXY/bAEAOFtOEAA6diUJEu0np4ozwiTYcWnm+8AsYZ2aNcZdY2xiuZK+qUeigbkkph648ZaBXLt2pUZKDmsERvwQbDH1eliPp2DG0QX0Q3KP/SdhMj+PONVuCDdbzSEscQC1V7NzD9JFYOLPJvBtwrzUqU5NTcgUVvfsLyrLPJ7Gtp311qFPArGyiBzNJyvYthK9CevWWYs/5KM/EElHEEwezxKa7lrRiczOP0b+CRZEpHcB2VE7zpk+kzu1PLdK05fb75VYVK2m7VR/bkv1DVjcDHQ/l3Y0vHSwseyvyY=