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
|
2019-07-24 20:12:26 +02:00
|
|
|
else
|
2019-07-24 20:23:40 +02:00
|
|
|
sudo apt-get update -qq && \
|
|
|
|
sudo apt-get install -qq lua5.2
|
2018-01-17 22:19:27 +01:00
|
|
|
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
|