2017-12-21 19:36:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-11-22 21:50:53 +01:00
|
|
|
# Install lua
|
|
|
|
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
2018-01-17 22:19:27 +01:00
|
|
|
brew install lua
|
|
|
|
fi
|
2017-12-21 19:36:56 +01:00
|
|
|
|
2018-05-30 09:09:15 +02:00
|
|
|
# Check if build is not tagged
|
2018-05-30 08:53:27 +02:00
|
|
|
if [ "${TRAVIS_TAG}" == "" ]; then
|
|
|
|
export EXECUTABLE_TAG=-$(git rev-parse --short HEAD)
|
|
|
|
else
|
|
|
|
export EXECUTABLE_TAG=
|
|
|
|
fi
|
|
|
|
|
2018-05-30 09:09:15 +02:00
|
|
|
# Check if package code is not set
|
|
|
|
if [ "${PACKAGE_CODE}" == "" ]; then
|
|
|
|
export PACKAGE_CODE=GitHub
|
|
|
|
fi
|
|
|
|
|
2018-07-13 12:07:13 +02:00
|
|
|
# Init Application Commit Hash
|
|
|
|
export APPLICATION_COMMIT=$(git rev-parse --short HEAD)
|
|
|
|
|
|
|
|
# Start CI script
|
2018-06-22 17:11:18 +02:00
|
|
|
.ci/ci.sh
|