Bigger matrix for travis ci. Including minimal configuration on linux and osx and x11 on linux

This commit is contained in:
Roman Chistokhodov 2017-06-09 03:50:21 +03:00
parent e1dafeddfd
commit 43cdb26bcd
1 changed files with 28 additions and 5 deletions

View File

@ -5,12 +5,35 @@ os:
- osx
env:
- ARCH=x86
- ARCH=x86_64
# No-one cares about OS X x86
- ARCH=x86_64 CONFIG=default
- ARCH=x86_64 CONFIG=minimal
- ARCH=x86_64 CONFIG=x11
- ARCH=x86 CONFIG=default
- ARCH=x86 CONFIG=minimal
- ARCH=x86 CONFIG=x11
# No-one cares about OS X x86 and X11 on OSX
matrix:
exclude:
- os: osx
env: ARCH=x86
env: ARCH=x86 CONFIG=default
- os: osx
env: ARCH=x86 CONFIG=minimal
- os: osx
env: ARCH=x86 CONFIG=x11
- os: osx
env: ARCH=x86_64 CONFIG=x11
sudo: true
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$ARCH" == "x86" ]]; then sudo apt-get install gcc-multilib; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CONFIG" == "x11" && "$ARCH" == "x86_64" ]]; then sudo apt-get install libx11-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CONFIG" == "x11" && "$ARCH" == "x86" ]]; then sudo apt-get install libx11-dev:i386; fi
script:
- dub test --compiler=${DC} --arch=${ARCH} --config=${CONFIG}
- dub build --compiler=${DC} --arch=${ARCH} --config=${CONFIG} :example1
- file examples/example1/bin/example1
- ls -lh examples/example1/bin/example1
- strip examples/example1/bin/example1
- ls -lh examples/example1/bin/example1