Added automatic deployment
This commit is contained in:
parent
7cb02511ae
commit
93d8521b86
4 changed files with 18 additions and 0 deletions
11
.travis.yml
11
.travis.yml
|
@ -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
|
|
@ -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
3
.travis/deploy-release.sh
Executable 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
3
.travis/deploy-snapshot.sh
Executable 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'
|
Loading…
Reference in a new issue