regen lua bindings for website on master

This commit is contained in:
Tim Felgentreff 2021-06-29 09:20:39 +02:00
parent c8bdea1011
commit c61d7596dd

View file

@ -7,6 +7,8 @@ jobs:
addons:
apt:
packages:
- python3
- python3-pip
- cmake
- libsdl2-dev
- libsdl2-mixer-dev
@ -34,6 +36,22 @@ before_script:
- cmake $CMAKEARGS ..
script: make
after_success:
- "if [ $TRAVIS_REPO_SLUG == Wargus/stratagus -a \
$TRAVIS_BRANCH == master -a \
$TRAVIS_OS_NAME == linux -a \
$TRAVIS_PULL_REQUEST == 'false' ]; then \
git clone https://${GH_TOKEN}@github.com/Wargus/wargus.github.io;
python3 -m pip install --user Pygments;
python3 doc/lua/generate_index.py;
cp index.html wargus.github.io/lua_bindings.html;
cd wargus.github.io;
git config --global user.email \"travis-ci@travis.org\";
git config --global user.name \"Travis CI\";
git add lua_bindings.html;
git commit -m \"update bindings\";
git push origin master;
cd ..;
fi"
- "if [ $TRAVIS_REPO_SLUG == Wargus/stratagus -a \
$TRAVIS_BRANCH == master -a \
$TRAVIS_OS_NAME == osx -a \