forked from CE-Programming/toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (43 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
dist: xenial
sudo: required
language: cpp
addons:
apt:
packages:
- wine
- doxygen
- doxygen-doc
script:
# Build toolchain and libs
- export WINEDEBUG=-all
- export CEDEV=~/CEdev
- export PATH=$CEDEV/bin/:$PATH
- export AUTOTESTER_LIBS_DIR=$(pwd)/clibraries
- make -j4 install release release-libs
# Build examples
- make -C $CEDEV/examples
# Build CEmu core and autotester_cli
- git clone --recursive -b latest-stable --depth 1 https://github.com/CE-Programming/CEmu.git
- make -C CEmu/core -j4
- make -C CEmu/tests/autotester -j2
- export PATH=$(pwd)/CEmu/tests/autotester:$PATH
# Grab ROM for tests below
- export ROM_FILE_NAME=84pce_515_53.rom
- curl -s https://tiplanet.org/scripts/travis/$ROM_FILE_NAME 2>/dev/null > $ROM_FILE_NAME
- export AUTOTESTER_ROM=$(pwd)/$ROM_FILE_NAME
# Test toolchain examples
- RESULT=0; for f in $CEDEV/examples/*/*.json; do echo "Launching autotester on $f"; autotester "$f"; RESULT=`expr $RESULT + $?`; done; return $RESULT
after_success:
# Update the funcs_tested file (WIP)
- ./tools/funcs_tested/gen_list.sh
# Build the doxygen
- make doxygen
# Update repo files
- bash .deploy.sh
notifications:
irc:
channels:
- "irc.choopa.net#ez80-dev"
on_success: change
on_failure: always
skip_join: true