forked from jacobly0/ICE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (49 loc) · 1.39 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
49
50
51
52
53
54
55
dist: trusty
sudo: required
language: cpp
addons:
apt:
packages:
- gcc-6
- g++-6
- wine
sources:
- ubuntu-toolchain-r-test
branches:
only:
- master
install:
- export CXX="g++-6" CC="gcc-6"; $CXX --version
script:
# Fetch toolchain, set variables
- export WINEDEBUG=-all
- export CEDEV=~/CEdev
- export PATH=$CEDEV/bin/:$PATH
- git clone --recursive https://github.com/CE-Programming/toolchain.git
- cd toolchain
- make
- make install
- make release
- make release-libs
- export AUTOTESTER_LIBS_DIR=$(pwd)/clibraries
- cd ..
# Build ICE
- make
# 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 CC=gcc-6 CXX=g++-6 LINK=g++-6
- make -C CEmu/tests/autotester -j4 CC=gcc-6 CXX=g++-6 LINK=g++-6
- 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 tests
- RESULT=0; for f in tests/*/*.json; do echo "Launching autotester on $f"; autotester "$f"; RESULT=`expr $RESULT + $?`; done; return $RESULT
notifications:
irc:
channels:
- "irc.choopa.net#icedev"
on_success: change
on_failure: always
skip_join: true