gta5view/.travis/travis.sh

24 lines
481 B
Bash
Raw Normal View History

2017-12-21 19:36:56 +01:00
#!/bin/bash
# Install curl and lua
2018-01-17 22:19:27 +01:00
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo apt-get update -qq && \
2018-06-03 16:10:20 +02:00
sudo apt-get install -qq curl lua5.2
2018-01-17 22:19:27 +01:00
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
brew install lua
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
2018-06-22 17:11:18 +02:00
.ci/ci.sh