-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy path.travis.yml
40 lines (40 loc) · 1.28 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
language: cpp
compiler:
- gcc
jobs:
include:
- os: linux
dist: focal
# - osx
addons:
apt:
packages:
- libpng-dev
- zlib1g-dev
before_script:
- mkdir build
- cd build
- curl -L https://github.com/Wargus/stratagus/archive/master.zip -O master.zip || true
- unzip master.zip
- cmake $EXTRA_CMAKE_FLAGS -DSTRATAGUS=stratagus -DSTRATAGUS_INCLUDE_DIR="$PWD/stratagus-master/gameheaders" ..
script: make
after_success:
- "if [ $TRAVIS_OS_NAME == osx ]; then \
if [ $TRAVIS_REPO_SLUG == Wargus/wargus -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 Wargus.app.tar.gz mac/Wargus.app;
cp Wargus.app.tar.gz stratagus.wiki/$TRAVIS_OS_NAME/;
cd stratagus.wiki/;
git config --global user.email \"travis-ci@travis.org\";
git config --global user.name \"Travis CI\";
git add $TRAVIS_OS_NAME/Wargus.app.tar.gz;
git commit --amend -C HEAD;
git push -fq origin master;
cd ..;
fi;
fi"