Moved all travis scripts into a separated folder
parent
606d5ac1f7
commit
ee673b1ac2
12
.travis.yml
12
.travis.yml
|
@ -10,9 +10,9 @@ services:
|
|||
before_install:
|
||||
# If ever run on windows make sure you don't run this in the git bash!
|
||||
- docker run -dit --name emscripten -v "$(pwd)":"/src/" trzeci/emscripten:sdk-incoming-64bit bash
|
||||
- chmod +x ./scripts/travis.sh
|
||||
- chmod +x ./scripts/travis_deploy_dev_server.sh
|
||||
- chmod +x ./scripts/travis_deploy_github.sh
|
||||
- chmod +x ./scripts/travis/build.sh
|
||||
- chmod +x ./scripts/travis/deploy_dev_server.sh
|
||||
- chmod +x ./scripts/travis/deploy_github.sh
|
||||
|
||||
stages:
|
||||
- compile
|
||||
|
@ -21,11 +21,11 @@ stages:
|
|||
jobs:
|
||||
include:
|
||||
- stage: compile
|
||||
script: "./scripts/travis.sh --enable-release --enable-debug || travis_terminate 1;"
|
||||
script: "./scripts/travis/build.sh --enable-release --enable-debug || travis_terminate 1;"
|
||||
|
||||
deploy:
|
||||
- provider: script
|
||||
script: "bash scripts/travis_deploy_dev_server.sh"
|
||||
script: "bash scripts/travis/deploy_dev_server.sh"
|
||||
cleanup: false
|
||||
skip_cleanup: true
|
||||
on:
|
||||
|
@ -33,6 +33,6 @@ deploy:
|
|||
- provider: script
|
||||
cleanup: false
|
||||
skip_cleanup: true
|
||||
script: "bash scripts/travis_deploy_github.sh"
|
||||
script: "bash scripts/travis/deploy_github.sh"
|
||||
on:
|
||||
branch: master
|
|
@ -123,7 +123,7 @@ function handle_failure() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; }
|
||||
cd "$(dirname "$0")/../../" || { echo "Failed to enter base dir"; exit 1; }
|
||||
error=""
|
||||
|
||||
LOG_FILE="$(pwd)/$LOG_FILE"
|
|
@ -12,7 +12,7 @@ chmod 600 /tmp/sftp_key
|
|||
echo "Failed to write SSH key"
|
||||
exit 1
|
||||
}
|
||||
cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; }
|
||||
cd "$(dirname "$0")/../../" || { echo "Failed to enter base dir"; exit 1; }
|
||||
|
||||
file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "TeaWeb-release*.zip" -print)
|
||||
[[ $(echo "$file" | wc -l) -ne 1 ]] && {
|
|
@ -44,7 +44,7 @@ if [[ ! -x ${GIT_RELEASE_EXECUTABLE} ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; }
|
||||
cd "$(dirname "$0")/../../" || { echo "Failed to enter base dir"; exit 1; }
|
||||
echo "Generating release"
|
||||
${GIT_RELEASE_EXECUTABLE} release \
|
||||
--repo "TeaWeb" \
|
Loading…
Reference in New Issue