Gobligine/.travis.yml

46 lines
2 KiB
YAML
Raw Normal View History

2015-11-23 06:07:25 -07:00
language: cpp
os:
- linux
2015-11-24 07:29:31 -07:00
- osx
2015-11-23 06:07:25 -07:00
addons:
apt:
packages:
- cmake
- libsdl1.2-dev
- liblua5.1-0-dev
- libtolua++5.1-dev
- libtolua-dev
- zlib1g-dev
- libpng12-dev
env:
global:
secure: h/wMVlWxfXeIC35xML0omciLC92zEVxwubWphmmF0dti90CwfEESV/Xo3cC6BH5rNUkxWctELGlBlkUEaP5Tyy/yjfkYv+dvR0Vh7H+M2ZZttDyIOv1016iz/3tNC7elMKyt2e3VHzVajGiHXMKNf+l0DO2/3T3YiKDlZIydb5IDbgaKIY4vPBkc05khAEpWEeNc2dpYxNTh6zgTCuBdc4INbKzDhgivimrXoYRTZ6tBcpvjy/iVy9gFJShwR0neM/F7b80wgyp02Cc5Z7Cwx0APc/UZ9uEd0aWzunO2wjFc9KPppOmlydnfXrzD8SUXg33X9sMLH7hpUXuom1lFlzpofXyH6nZ3wHZX+9jX6liiHRpBlSG+T3V4ddVjWZo1HHKmTMlu0x9S4uw1xSwWmX4dWPQaIGO0/BRKZwV00UdXlnUm+s5e7k6NPu1iI6Amuc4CCUC54PGPBRY8OA6A04krq2RB2Rx+xMuWmECJ3mFPVjW48XUkZvcQxexoocRxCWWRMGX5qKF4/TSbzMRMrLsUqcOCc9zW+uJoMQ404sKnjwUZp9fOfoZuVHSrHJ4SNW8tPYu4XCrTbURVgeePB3QqrwYiLZBDQ8F9eFMU/Gwdc2uJRp3+fLhyGu+x896jryJnpEmbs1P2sUvKjZnlmE3XxDv5xCvLNFhbRrl0Pfo=
2015-11-23 06:07:25 -07:00
before_script:
2015-11-24 07:40:49 -07:00
- "if [ $TRAVIS_OS_NAME == osx ]; then brew install lua51 sdl; \
git clone https://github.com/LuaDist/toluapp.git; \
2015-11-24 07:46:39 -07:00
cd toluapp; mkdir build;
cd build; cmake ..; make; \
2016-01-06 03:32:19 -07:00
export CMAKEARGS=\"-DTOLUA++_INCLUDE_DIR=$(pwd)/../include/ -DTOLUA++_LIBRARY=$(pwd)/libtoluapp.dylib -DTOLUA++_APP=$(pwd)/toluapp\";
2015-11-24 07:46:39 -07:00
cd ..;
2015-11-24 07:41:53 -07:00
cd ..;
2015-11-24 07:40:49 -07:00
fi"
2015-11-23 06:07:25 -07:00
- mkdir build
- cd build
- cmake $CMAKEARGS ..
2015-11-24 07:29:31 -07:00
script: make
after_success:
- "if [ $TRAVIS_REPO_SLUG == Wargus/stratagus -a \
$TRAVIS_BRANCH == master -a \
$TRAVIS_PULL_REQUEST == 'false' ]; then \
git clone https://${GH_TOKEN}@github.com/Wargus/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 \"travis-ci@travis.org\";
git config --global user.name \"Travis CI\";
git add $TRAVIS_OS_NAME/stratagus;
git commit --amend -C HEAD;
git push -fq;
cd ..;
fi"