forked from z88dk/z88dk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.37 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
sudo: false
cache:
directories:
- ~/perl5/
- ~/.ccache
language: cpp
# https://docs.travis-ci.com/user/languages/cpp/ - support C11
# linux: gcc-4.9 and clang-3.6
# osx: gcc-4.9 and os-default clang
# https://stackoverflow.com/questions/39536144/libsystem-symptoms-dylib-missing-in-xcode-8
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- dos2unix
- libboost-all-dev
- texinfo
- texi2html
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- os: osx
osx_image: xcode7.3
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
before_install:
- eval "${MATRIX_EVAL}"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cpanm dos2unix ccache ragel ; fi
- cpanm --local-lib=~/perl5 local::lib App::Prove Modern::Perl Capture::Tiny Capture::Tiny::Extended Path::Tiny File::Path Template Template::Plugin::YAML Test::Differences CPU::Z80::Assembler Test::HexDifferences Data::HexDump Object::Tiny::RW Regexp::Common List::Uniq
- eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
before_script:
- export PATH=`pwd`/bin:$PATH
- export ZCCCFG=`pwd`/lib/config
script:
- ./build.sh -e -t