Merge pull request #38 from pi-hole/remove-travis

Remove Travis CI
This commit is contained in:
Mark Drobnak
2018-06-10 13:50:06 -04:00
committed by GitHub
2 changed files with 1 additions and 32 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ deploy:
- echo "web.pi-hole.io" > build/CNAME
# Deploy to GitHub Pages
- git clone --depth 1 -b gh-pages https://pralor:$GITHUB_ACCESS_TOKEN@github.com/pi-hole/web.git deploy
- git clone --depth 1 -b gh-pages https://pralor:$GITHUB_TOKEN@github.com/pi-hole/web.git deploy
- shopt -s extglob # Enable extra globs, like !()
- rm -rf deploy/!(.|..|.git)
- cp -r build/* deploy/
-31
View File
@@ -1,31 +0,0 @@
language: node_js
node_js:
- 8
cache:
directories:
- node_modules
env:
global:
- PUBLIC_URL=/
script:
- npm run gulp sass
- rm public/fakeAPI/.gitignore # Make sure that the fakeAPI data is deployed
- 'if [ "$TRAVIS_BRANCH" = "master" ]; then
npm run build-fake;
echo "web.pi-hole.io" > build/CNAME;
else
npm run build;
fi'
- tar -czvf pihole-web.tar.gz -C build .
- wget https://ftl.pi-hole.net:8080/FTL-client
- chmod +x ./FTL-client
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./FTL-client "${TRAVIS_BRANCH}" pihole-web.tar.gz "${TRAVIS_SECRET}"; fi'
- rm ./FTL-client
deploy:
provider: pages
skip_cleanup: true
local-dir: build
github_token: $GITHUB_TOKEN
on:
branch: master