Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
WolverinDEV | 3a48284246 | |
WolverinDEV | f9de0487fe |
27
.travis.yml
27
.travis.yml
|
@ -19,7 +19,8 @@ stages:
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: compile
|
- 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:
|
deploy:
|
||||||
- provider: script
|
- provider: script
|
||||||
|
@ -28,12 +29,12 @@ deploy:
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
branch: develop
|
branch: develop
|
||||||
# - provider: script
|
- provider: script
|
||||||
# cleanup: false
|
cleanup: false
|
||||||
# skip_cleanup: true
|
skip_cleanup: true
|
||||||
# script: "bash scripts/travis/deploy_docker.sh development"
|
script: "bash scripts/travis/deploy_docker.sh development"
|
||||||
# on:
|
on:
|
||||||
# branch: develop
|
branch: develop
|
||||||
- provider: script
|
- provider: script
|
||||||
script: "bash scripts/travis/deploy_server.sh production"
|
script: "bash scripts/travis/deploy_server.sh production"
|
||||||
cleanup: false
|
cleanup: false
|
||||||
|
@ -46,9 +47,9 @@ deploy:
|
||||||
script: "bash scripts/travis/deploy_github.sh"
|
script: "bash scripts/travis/deploy_github.sh"
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
# - provider: script
|
- provider: script
|
||||||
# cleanup: false
|
cleanup: false
|
||||||
# skip_cleanup: true
|
skip_cleanup: true
|
||||||
# script: "bash scripts/travis/deploy_docker.sh release"
|
script: "bash scripts/travis/deploy_docker.sh release"
|
||||||
# on:
|
on:
|
||||||
# branch: master
|
branch: master
|
|
@ -16,14 +16,10 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# FIXME: This dosn't work anymore
|
# We're only using the release packages even on the development branch
|
||||||
zip_file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "TeaWeb-release*.zip" -print)
|
zip_file=$(find_release_package "web" "release")
|
||||||
[[ $(echo "$zip_file" | wc -l) -ne 1 ]] && {
|
[[ $? -ne "$zip_file" ]] && {
|
||||||
echo "Invalid .zip file count (Expected 1 but got $(echo "$zip_file" | wc -l)): ${zip_file[*]}"
|
echo "TeaWeb release package does not exists ($zip_file)"
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
[[ ! -e "$zip_file" ]] && {
|
|
||||||
echo "File ($zip_file) does not exists"
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,6 @@ upload_package() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
upload_package "development"
|
# upload_package "development"
|
||||||
upload_package "release"
|
upload_package "release"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue