-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
28 lines (28 loc) · 1.46 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
language: node_js
node_js:
- 4
- 6
after_success:
- npm i coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && echo "Coverage data was sent to coveralls!"
deploy:
provider: npm
email: [email protected]
api_key:
secure: EX4azZwFSX5DeK64+kUArsfrt8K+YmRAH+Sjpg/tGE8aEwsXDs2vFkzhZEmYiSs0ES1kS7bAZz5D4SIIZv4yg6/2ZYEa8Lhxe3Vk8Z7TXiI0pEy+b5L1yjnoaBa8xho6akii4OqqOOhOzNUBqCpb1nWZUQ9m5pvDg7yIRH8ip1EaLOYzQ0SE51Vyv6ChH/s2cAFztpRc2WvigDaU7qWr8wREKpYO2h4T2A6xayP2BRl5iCpfhG50ojPuDv17iY3zSLwBk8AyvuWNMUDCgc6tIsPoeMvN7dY+5l4wVupD5We9z3syaz15XLawKizkua0DA1Zirlvjx6HF/p1koEHPIIcxV/VMmGB8z3Yp2xrL2rU/+EgV5GI1KjYNsi9abIQOz5ebIGh5Lb7AhME1af1mnTbqnheP5+2UKIOnUjNMECvXq4VaHweDR3CwFrhhkWuI2mQoF98j/SJIinSuLJ0vSYw0vDjMGgLAC2Ks7LnNnvYaBYcRzuf2MG3J5rUvUok5FqRqt0uSFJWb2qHiRSm2bShbFw83QfeknOih5hVed5MwvqMUlUVTx+gD5O4L3lXQskEOvL+ZF7aOBNTuXLURgTO1NILYwbsPwJ7s4sKy5sS9SHDHt/4C0aVCC/jh5qTkL2rM5cNJ54E5OcYiQ1SJtnPhLgkkCpxClBtW7AcLjhY=
skip_cleanup: true
on:
tags: true
node: 4
after_deploy:
- |
if [ -n "$GH_TOKEN" ]; then
git clone -q --branch gh-pages "https://${GH_TOKEN}@github.com/prosvita/crh.transliteration.git" gh-pages
cp -rf ./index.html ./dist ./gh-pages
cd gh-pages
for f in ./dist/*.js; do gzip -c ${f} > ${f}.gz; done
git add .
git -c user.name="TravisCI" -c user.email="travis" commit -m "Travis Build for ${TRAVIS_TAG}"
git push -q origin gh-pages
cd "$TRAVIS_BUILD_DIR"
fi