Added automatic deployment

This commit is contained in:
Lukas Metzger 2018-06-07 21:28:03 +02:00
parent 7cb02511ae
commit 93d8521b86
4 changed files with 18 additions and 0 deletions

View File

@ -23,3 +23,14 @@ script:
- .travis/backend-lint.sh
- .travis/backend-test.sh
- .travis/build-package.sh
deploy:
- provider: script
script: .travis/deploy-snapshot.sh
skip_cleanup: true
on:
branch: dev
- provider: script
script: .travis/deploy-release.sh
skip_cleanup: true
on:
tags: true

View File

@ -4,6 +4,7 @@
if test $TRAVIS_TAG
then
utils/make-package.sh pdnsmanager-$TRAVIS_TAG
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT
else
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT
fi

3
.travis/deploy-release.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
curl -F "file=@pdnsmanager-$TRAVIS_TAG.tar.gz" -u "travis:$UPLOAD_PASS" 'https://upload.pdnsmanager.org/?action=release'

3
.travis/deploy-snapshot.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
curl -F "file=@pdnsmanager-$TRAVIS_COMMIT.tar.gz" -u "travis:$UPLOAD_PASS" 'https://upload.pdnsmanager.org/?action=snapshot'