vanity-eth/.travis.yml
2018-04-23 18:45:24 +02:00

24 lines
No EOL
516 B
YAML

language: node_js
node_js:
- "node"
install: npm i
script:
- npm test
- npm run build
# Remove unwanted files
- find . -maxdepth 1 -type f -not -name 'LICENSE' -not -name 'index.html' -not -name 'README.md' -delete &&
rm -fr node_modules src dist/vanity.js
# Cache busting
- COMMIT=$(git log --format='%h' -n 1) &&
sed -i "s/index.js/index.$COMMIT.js/g" index.html &&
mv dist/index.js dist/index.$COMMIT.js
deploy:
provider: pages
skip-cleanup: true
github-token: $TOKEN
fqdn: vanity-eth.tk