-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
45 lines (44 loc) · 1.36 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
43
44
language: cpp
compiler:
- gcc
jobs:
include:
- os: linux
dist: focal
# - osx
# osx_image: xcode12
addons:
apt:
packages:
- libpng-dev
before_script:
- mkdir build
- cd build
- "if [ $TRAVIS_OS_NAME == osx ]; then \
brew install imagemagick;
cmake ..;
fi"
- curl -O -L https://github.com/Wargus/stratagus/archive/master.zip;
- 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/war1gus -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 War1gus.app.tar.gz mac/War1gus.app;
cp War1gus.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/War1gus.app.tar.gz;
git commit --amend -C HEAD;
git push -fq origin master;
cd ..;
fi;
fi"