Add checks ensuring CI scripts only run on CI

This commit is contained in:
Michał Janiszewski 2016-10-21 17:08:16 +02:00 committed by GitHub
parent 2aac1dd4e3
commit c26b5ec2b8
3 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,13 @@
set -e
if [[ $TRAVIS != "true" ]]
then
echo This script is only meant to be run on Travis-CI.
echo Please use CMake to build the project.
exit 1
fi
cachedir=.cache
mkdir -p $cachedir

View File

@ -2,6 +2,14 @@
set -ev
if [[ $TRAVIS != "true" ]]
then
echo This script is only meant to be run on Travis-CI.
echo Please use CMake to build the project.
exit 1
fi
sudo rm -rf /usr/local/cross-tools/i686-w64-mingw32
sudo rm -rf /usr/local/cross-tools/orcalibs
sudo rm -rf /usr/local/cross-tools/orctlibs

View File

@ -1,5 +1,12 @@
#!/bin/bash
if [[ $TRAVIS != "true" ]]
then
echo This script is only meant to be run on Travis-CI.
echo Please use CMake to build the project.
exit 1
fi
SDL2_PV=2.0.3
SDL2_TTF_PV=2.0.12