-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (34 loc) · 1.03 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
language: cpp
dist: trusty
git:
submodules: false
addons:
ssh_known_hosts:
- github.com
apt:
packages:
- libevent-dev
- libsqlite3-dev
env:
- DATABASE_FILE=expansions/Cards-non-QCD.cdb
- DATABASE_FILE=expansions/official.cdb
- DATABASE_FILE=expansions/pre-release.cdb
- DATABASE_FILE=expansions/cards-new.cdb
before_install:
- git clone --depth=1 --branch=server --recursive https://github.com/purerosefallen/ygopro
- cd ygopro
- git submodule foreach git checkout master
- ln -s ./../expansions .
- wget -O - https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-linux.tar.gz | tar zfx -
- wget -O - https://www.lua.org/ftp/lua-5.3.4.tar.gz | tar zfx -; cd lua-5.3.4; sudo make linux install; cd ..
- ./premake5 gmake
- cd build
- make config=release
- cd ..
- mv -f ./bin/release/ygopro .
- strip ygopro
- mkdir replay
script:
- echo "select id from datas;" | sqlite3 $DATABASE_FILE | xargs -I {} ./ygopro {} 2>&1 | tee ../redtext.txt
- cd ..
- bash -c "exit $(cat ./redtext.txt | wc -l)"