Add checks ensuring CI scripts only run on CI

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

No files matched your search

+7
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
+8
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
+7
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