forked from DFHack/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1.29 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
sudo: false
language: generic
cache:
pip: true
directories:
- $HOME/lua53
before_install:
- pip install --user sphinx==1.4
- mkdir -p $HOME/dfhack
- wget https://github.com/DFHack/dfhack/archive/develop.tar.gz -O $HOME/dfhack.tar.gz
- tar xzf $HOME/dfhack.tar.gz -C $HOME/dfhack --strip-components 1
- wget https://github.com/DFHack/df-structures/archive/master.tar.gz -O $HOME/dfhack/library/xml/xml.tar.gz
- tar xzf $HOME/dfhack/library/xml/xml.tar.gz -C $HOME/dfhack/library/xml --strip-components 1
- wget https://github.com/DFHack/stonesense/archive/master.tar.gz -O $HOME/dfhack/plugins/stonesense/stonesense.tar.gz
- tar xzf $HOME/dfhack/plugins/stonesense/stonesense.tar.gz -C $HOME/dfhack/plugins/stonesense --strip-components 1
- rmdir $HOME/dfhack/scripts
- ln -s "$(pwd)" $HOME/dfhack/scripts
- sh $HOME/dfhack/travis/build-lua.sh
script:
- export PATH="$PATH:$HOME/lua53/bin"
- sphinx-build -qW -j3 $HOME/dfhack $HOME/dfhack/docs/html
- python $HOME/dfhack/travis/lint.py
- python $HOME/dfhack/travis/script-docs.py .
- python $HOME/dfhack/travis/script-syntax.py --ext=lua --cmd="luac5.3 -p"
- python $HOME/dfhack/travis/script-syntax.py --ext=rb --cmd="ruby -c"
notifications:
email: false
irc:
channels:
- "chat.freenode.net#dfhack"
on_success: change
on_failure: always