forked from Wargus/stargus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 1.95 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: cpp
compiler:
- gcc
os:
- linux
- osx
addons:
apt:
packages:
- libpng12-dev
- libgtk2.0-dev
- zlib1g-dev
env:
global:
secure: "D6S9WHacoK6XFQEq4jD7quEbKc6xDA7yMe9pKiQHSdhKhB20UJueBQccPARDEV6zUkp0OWHT3aCiV9PtjBiTewD+0z3Dm2oFZYkTe3ZlOyI+GdODEDztDip27ghTXfedkoFuQJeT++FSz07TSNrmR0jrgZu1aBLr23MefUNURU+8vEb5V5gu+ai0RRSSjLOO45B3Vf1X7oVfowK1bEgZbL9x6yaFLdbJC4orxrZKSsuuErKKpS9RtfaUZUr6M3ghE97BFRqLLWeOD2m2x5UIHR7wccrDoeKwAQgzK142aZfAfzE29iu5TrshZES+SdDWZytQhNpTcKo9Tw3OtRWNDs6/iIl7KCTPgif7M2XYrL8hhs4wQKTjJ+vAUKR8uecajgjS/qybQZiUsRdOHg/bx3HQIQZRhfHK+XKyCHOVcJBe1Nl0rQ7ZbEGgYs2S5oXcAU4pxmrQx9pIG2+6RsHnxKTEW/WN4YSDswFitEMC83bwqzNc2y6uqxlVZbF3XhISRDlVF9o3YjuYEJdvz/OKbnTWj6BVASCVsgRM+cMdswV0Gewz3/9WfRgOucmIixrJq9aOCGDBX8PNFmWr9yWdD0GJzO7dwsn7Z77u8Zyu+ry/8izotXvx6sM6OqzBqaJXVAP2Vw6Y2i1/IWIMFRof+CGvWyAWKxrSey2FvLkvkgQ="
before_script:
- mkdir build
- cd build
- curl -L https://github.com/Wargus/stratagus/archive/master.zip -O master.zip || true
- unzip master.zip
- cmake -DSTRATAGUS=stratagus -DSTRATAGUS_INCLUDE_DIR="$PWD/stratagus-master/gameheaders" ..
script: make
after_success:
- "if [ $TRAVIS_OS_NAME == osx ]; then \
if [ $TRAVIS_REPO_SLUG == Wargus/stargus -a \
$TRAVIS_BRANCH == master -a \
$TRAVIS_PULL_REQUEST == 'false' ]; then \
cd $TRAVIS_BUILD_DIR;
git clone https://${GH_TOKEN}@github.com/Wargus/stratagus.wiki.git;
export STRATAGUS=$(pwd)/stratagus.wiki/$TRAVIS_OS_NAME/stratagus;
mac/bundle.sh;
tar czvf Stargus.app.tar.gz mac/Stargus.app;
cp Stargus.app.tar.gz stratagus.wiki/$TRAVIS_OS_NAME/;
cd stratagus.wiki/;
git config --global user.email \"[email protected]\";
git config --global user.name \"Travis CI\";
git add $TRAVIS_OS_NAME/Stargus.app.tar.gz;
git commit --amend -C HEAD;
git push -fq origin master;
cd ..;
fi;
fi"