-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
32 lines (29 loc) · 1.82 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
language: cpp
compiler:
- gcc
# - clang
env:
global:
- SDL2_VERSION=2.0.3
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "DgHNLZozM5W4pN0nZkvpRIQUI4Tn8msVzw0zJASFP+aSVJrpauG4OHfdE0PlMFROCdhtMS4cc4T9CcufBH9B55Lg0hzn99kXZsxt8/JOuW1QVgqPcRNwEA4v+03/Z1CwRGi4CpLI0FBOVnX0DJ0sx5chdKq5rlcoQ1FK/q5E0kMmlIYa7wOUdEplGjVvxcB1+8Qw2fVA1sykKtcEya0zix9ffY0M7dZWlkJ3HB9QQJLtgU093l1mffzMWwaZ5j3NZmX/WxyycQADBBZEc8O/lzES8G6FrUpml4U40SgNe+qNNjLXMKtDY4G3WJMbnYTUhDNHpKX1f1ZmYem/8jFNeeix2prgm+xvrsaeOugmUYBBj0QhcAF0PUm/6NuC0HR7HxlBvbcrv+iEFWNixvEhnzik4U+jjCVv3e7EG9UqVBZo1zAwgma1zYr0sgjT0UNTN0E1hFpkIr+MDZUYpHp6scNRxvR1ZcYZkrmuAiCbd0RMNAcJL3kuBMbeDVP7Z3GzcooFJQKLAVVU1hu2+11LiPtI7rVzj6ivrXN8ngm7ZVDwK5nbPBwRwsqUIHSacrqB7CyfHkcW1ajlDnEOxETTp5XUYIkMRWq+rX2jkYgMHb8k/VFpZEHkAPQsr+mg11z2PVS2e7rm2Y7CzpPjMziWcZUBPtlyX8Urkf0w29HqUXw="
before_install:
# SDL dependencies
- wget http://libsdl.org/release/SDL2-$SDL2_VERSION.tar.gz -O - | tar xz
- (cd SDL2-$SDL2_VERSION && ./configure --prefix=/usr && make -j3 && sudo make install && cd ..)
- wget --no-check-certificate https://www.busybox.net/downloads/binaries/busybox-x86_64 -O uuencode && chmod a+x uuencode
script:
- cd PuzzleBoy && mkdir build && cd build && cmake .. && make && cd ..
- build/puzzleboy --headless --random random 100 -o random.lev
- gzip -9 random.lev && ../uuencode random.lev.gz random.lev.gz
##test
#addons:
# coverity_scan:
# project:
# name: "acmepjz/puzzleboy"
# description: "Build submitted via Travis CI"
# notification_email: [email protected]
# build_command_prepend: "cd PuzzleBoy && mkdir coverity && cd coverity && cmake .. && make clean"
# build_command: "make -j 4"
# branch_pattern: master