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