-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (43 loc) · 1.69 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
#- clang
before_install:
# Required dependencies
- sudo apt-get install libsdl1.2-dev libsdl1.2debian libsdl-image1.2-dev libsdl-image1.2 libsdl-ttf2.0-dev libsdl-ttf2.0-0 libsndfile1-dev libopenal-dev libmagic-dev libgtk2.0-dev libjson-spirit-dev #libboost-all-dev #libjson-spirit-dev # doxygen graphviz
# virtual X11 framebuffer:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x32"
# nomlib build & installation:
- PROJECT_NAME=nomlib; export PROJECT_NAME
- git clone --branch=dev https://github.com/i8degrees/nomlib nomlib.git
- cd nomlib.git && mkdir -p build && cd build
- cmake -D CMAKE_VERBOSE_MAKEFILE=on -D CMAKE_INSTALL_PREFIX=/usr/local ..
- make -j4
- sudo make install
- sudo ldconfig
before_script:
- PROJECT_NAME=ttcards; export PROJECT_NAME
- cd $HOME/build/i8degrees/${PROJECT_NAME} && mkdir -p build build-osx && cd build
- cmake -D CMAKE_VERBOSE_MAKEFILE=on -D CMAKE_INSTALL_PREFIX=/usr/local ..
script:
- make -j4
#- make package # TODO
#- sudo dpkg --install ttcards_0.7.0.deb
#- sudo dpkg --remove ttcards
- sudo make install
- du -csh "$(which ttcards)"
- du -csh "/usr/local/share/ttcards/Resources/"
- du -csh "/usr/local/share/doc/ttcards/"
- ttcards --version
- ttcards --export /usr/local/share/ttcards/Resources/cards.json $HOME/my_cards.json && cat $HOME/my_cards.json
#- ttcards --config $HOME/my_config.json && cat $HOME/my_config.json
- sudo make uninstall
- make clean
# whitelist
branches:
only:
- feature/travis
#- dev
#- master