diff options
-rw-r--r-- | .travis-ci.sh | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/.travis-ci.sh b/.travis-ci.sh index a50398b..1475dea 100644 --- a/.travis-ci.sh +++ b/.travis-ci.sh @@ -76,7 +76,7 @@ elif [[ $TASK = 'windows' ]]; then travis_fold start "make_windows" make windows; travis_fold end "make_windows" - + travis_fold start "deploy_windows" if [ "$(git describe)" == "$(git describe --abbrev=0)" ]; then mkdir ./deployment mkdir ./deployment/backends @@ -88,28 +88,27 @@ elif [[ $TASK = 'windows' ]]; then cp -r ./configs ./deployment/ cd ./deployment zip -r "./midimonster-$(git describe)-windows.zip" "./" - rm -v !(*.zip) + find . ! -iname '*.zip' -delete fi - - + travis_fold end "deploy_windows" else # Otherwise compile as normal travis_fold start "make" make full; - -if [ "$(git describe)" == "$(git describe --abbrev=0)" ]; then - mkdir ./deployment - mkdir ./deployment/backends - mkdir ./deployment/docs - cp ./midimonster ./deployment/ - cp ./backends/*.so ./deployment/backends/ - cp ./monster.cfg ./deployment/monster.cfg - cp ./backends/*.md ./deployment/docs/ - cp -r ./configs ./deployment/ - cd ./deployment - tar czf "midimonster-$(git describe)-$TRAVIS_OS_NAME.tgz" * - rm -v !("*.tgz") - fi - travis_fold end "make" -fi
\ No newline at end of file + travis_fold start "deploy_unix" + if [ "$(git describe)" == "$(git describe --abbrev=0)" ]; then + mkdir ./deployment + mkdir ./deployment/backends + mkdir ./deployment/docs + cp ./midimonster ./deployment/ + cp ./backends/*.so ./deployment/backends/ + cp ./monster.cfg ./deployment/monster.cfg + cp ./backends/*.md ./deployment/docs/ + cp -r ./configs ./deployment/ + cd ./deployment + tar czf "midimonster-$(git describe)-$TRAVIS_OS_NAME.tgz" * + find . ! -iname '*.tgz' -delete + fi + travis_fold end "deploy_unix" +fi |