Compare commits

...

2 Commits

3 changed files with 19 additions and 22 deletions

View File

@ -19,7 +19,8 @@ stages:
jobs:
include:
- stage: compile
script: "./scripts/travis/build.sh --enable-release --enable-debug || travis_terminate 1;"
# script: "./scripts/travis/build.sh --enable-release --enable-debug || travis_terminate 1;"
script: "./scripts/travis/build.sh --enable-release || travis_terminate 1;"
deploy:
- provider: script
@ -28,12 +29,12 @@ deploy:
skip_cleanup: true
on:
branch: develop
# - provider: script
# cleanup: false
# skip_cleanup: true
# script: "bash scripts/travis/deploy_docker.sh development"
# on:
# branch: develop
- provider: script
cleanup: false
skip_cleanup: true
script: "bash scripts/travis/deploy_docker.sh development"
on:
branch: develop
- provider: script
script: "bash scripts/travis/deploy_server.sh production"
cleanup: false
@ -46,9 +47,9 @@ deploy:
script: "bash scripts/travis/deploy_github.sh"
on:
branch: master
# - provider: script
# cleanup: false
# skip_cleanup: true
# script: "bash scripts/travis/deploy_docker.sh release"
# on:
# branch: master
- provider: script
cleanup: false
skip_cleanup: true
script: "bash scripts/travis/deploy_docker.sh release"
on:
branch: master

View File

@ -16,14 +16,10 @@ else
exit 1
fi
# FIXME: This dosn't work anymore
zip_file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "TeaWeb-release*.zip" -print)
[[ $(echo "$zip_file" | wc -l) -ne 1 ]] && {
echo "Invalid .zip file count (Expected 1 but got $(echo "$zip_file" | wc -l)): ${zip_file[*]}"
exit 1
}
[[ ! -e "$zip_file" ]] && {
echo "File ($zip_file) does not exists"
# We're only using the release packages even on the development branch
zip_file=$(find_release_package "web" "release")
[[ $? -ne "$zip_file" ]] && {
echo "TeaWeb release package does not exists ($zip_file)"
exit 1
}

View File

@ -87,6 +87,6 @@ upload_package() {
fi
}
upload_package "development"
# upload_package "development"
upload_package "release"
exit 0