forked from Wargus/stratagus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 992 Bytes
/
.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
language: cpp
os:
- linux
addons:
apt:
packages:
- cmake
- libsdl1.2-dev
- liblua5.1-0-dev
- libtolua++5.1-dev
- libtolua-dev
- zlib1g-dev
- libpng12-dev
before_script:
- mkdir build
- cd build
- cmake $CMAKEARGS ..
script: make
after_success:
- "if [ $TRAVIS_REPO_SLUG == shouhuanxiaoji/stratagus -a \
$TRAVIS_BRANCH == master -a \
$TRAVIS_OS_NAME == linux -a \
$TRAVIS_PULL_REQUEST == 'false' ]; then \
git clone https://${GH_TOKEN}@github.com/shouhuanxiaoji/stratagus.wiki.git;
mkdir -p stratagus.wiki/$TRAVIS_OS_NAME;
cp $TRAVIS_BUILD_DIR/build/stratagus stratagus.wiki/$TRAVIS_OS_NAME/;
cd stratagus.wiki/;
git config --global user.email \"[email protected]\";
git config --global user.name \"xiaoji\";
git add $TRAVIS_OS_NAME/stratagus;
git commit --amend -C HEAD;
git push -fq origin master;
cd ..;
fi"