gta5view/.travis/travis.sh

28 lines
532 B
Bash
Raw Permalink Normal View History

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
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
# 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
# Check if package code is not set
if [ "${PACKAGE_CODE}" == "" ]; then
export PACKAGE_CODE=GitHub
fi
# 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