diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0fa36bd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,55 @@ +# .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: + +# Different configurations of default gcc and clang + + - env: BASE=3.15 + + - env: SET=test01 diff --git a/test01.set b/test01.set new file mode 100644 index 0000000..4034f3d --- /dev/null +++ b/test01.set @@ -0,0 +1,5 @@ +MODULES="sncseq asyn" + +BASE=R3.15.6 +ASYN=master +SNCSEQ=R2-2-7 diff --git a/travis-test.sh b/travis-test.sh new file mode 100755 index 0000000..b1d502c --- /dev/null +++ b/travis-test.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e -x + +echo Testing the dependency setup diff --git a/travis/prepare.sh b/travis/prepare.sh index 5e0912a..e816677 100755 --- a/travis/prepare.sh +++ b/travis/prepare.sh @@ -74,7 +74,11 @@ git clone --quiet --depth 5 $BASE_RECURSIVE --branch "$BASE" $BASE_REPO epics-ba mkdir -s "$SOURCEDIR" cd "$SOURCEDIR" -for modrepo in ${MODULES} + +# Check out dependencies +# ---------------------- + +for mod in BASE $MODULES do module=${modrepo%CPP} module_uc=$(echo $module | tr 'a-z' 'A-Z')