Files
ci-scripts/.travis.yml
2019-11-21 14:33:47 +01:00

111 lines
2.3 KiB
YAML

# .travis.xml for testing EPICS Base ci-scripts
# (see: https://github.com/epics-base/ci-scripts)
# Note:
# Paths to scripts are different in this test configuration
# (your module has one more directory level: .ci)
language: cpp
compiler: gcc
dist: xenial
cache:
directories:
- $HOME/.cache
env:
global:
- SETUP_PATH=.:.ci
addons:
apt:
packages:
- libreadline6-dev
- libncurses5-dev
- perl
- clang
- g++-mingw-w64-i686
- qemu-system-x86
install:
- ./travis/prepare.sh
script:
- ./travis-test.sh
# If you need to do more during install and build,
# add a local directory to your module and do e.g.
# - ./.ci-local/travis/install-extras.sh
# Define build jobs
# Well-known variables to use
# BASE branch or release tag name of the EPICS Base to use
# EXTRA content will be added to make command line
# STATIC set to YES for static build (default: NO)
# TEST set to NO to skip running the tests (default: YES)
matrix:
include:
# Run unit tests on Linux and Mac
- env: SET=test00
- env: SET=test00
os: osx
# Compile the example application
# using the build configurations from full example
# (makeBaseApp example - no C++parts yet)
- env: SET=test01
- env: SET=test01
compiler: clang
- env: VV="" SET=test01
# - env: SET=test01 EXTRA="CMD_CXXFLAGS=-std=c++11"
# - env: SET=test01 EXTRA="CMD_CXXFLAGS=-std=c++11"
# compiler: clang
- env: SET=test01
dist: trusty
# - env: SET=test01 EXTRA="CMD_CXXFLAGS=-std=c++11"
# dist: trusty
# Cross-compilation to Windows using MinGW and WINE
# (DLL builds only work for EPICS 7)
- env: SET=test01 WINE=32 TEST=NO STATIC=YES
compiler: mingw
- env: SET=test01 WINE=64 TEST=NO STATIC=YES
compiler: mingw
# Cross-compilation to RTEMS
- env: SET=test01 RTEMS=4.10 TEST=NO
- env: SET=test01 RTEMS=4.9 TEST=NO
# Other gcc versions (adding as an extra package)
- env: SET=test01
compiler: gcc-6
addons: { apt: { packages: ["g++-6"], sources: ["ubuntu-toolchain-r-test"] } }
- env: SET=test01
compiler: gcc-7
addons: { apt: { packages: ["g++-7"], sources: ["ubuntu-toolchain-r-test"] } }
# MacOS build
- env: SET=test01
os: osx
compiler: clang
addons: { homebrew: { packages: ["re2c"], update: true } }