diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3bd1034 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +sudo: false +dist: trusty +language: python +compiler: + - gcc +addons: + apt: + packages: + - libreadline6-dev + - libncurses5-dev + - perl +install: + - pip install -r requirements-${PROF}.txt + - ./build-deps.sh +script: + - make PYTHON=`which python` -j2 +matrix: + include: + - python: "2.7" + env: BRBASE=3.16 PROF=deb8 + - python: "2.7" + env: BRBASE=3.16 PROF=deb8 CMPLR=clang + - python: "3.4" + env: BRBASE=3.16 PROF=deb8 + - python: "3.6" + env: BRBASE=3.16 PROF=deb9 + - python: "2.7" + env: BRBASE=3.15 PROF=deb8 + - python: "2.7" + env: BRBASE=3.14 PROF=deb8 diff --git a/build-deps.sh b/build-deps.sh new file mode 100755 index 0000000..b549ac8 --- /dev/null +++ b/build-deps.sh @@ -0,0 +1,66 @@ +#!/bin/sh +set -e -x + +CURDIR="$PWD" + +cat << EOF > configure/RELEASE.local +EPICS_BASE=$HOME/.source/epics-base +EOF +cat configure/RELEASE.local + +install -d "$HOME/.source" +cd "$HOME/.source" + +git clone --quiet --depth 5 --branch "$BRBASE" https://github.com/epics-base/epics-base.git epics-base + +(cd epics-base && git log -n1 ) + +EPICS_HOST_ARCH=`sh epics-base/startup/EpicsHostArch` + +case "$CMPLR" in +clang) + echo "Host compiler is clang" + cat << EOF >> epics-base/configure/os/CONFIG_SITE.Common.$EPICS_HOST_ARCH +GNU = NO +CMPLR_CLASS = clang +CC = clang +CCC = clang++ +EOF + + # hack + sed -i -e 's/CMPLR_CLASS = gcc/CMPLR_CLASS = clang/' epics-base/configure/CONFIG.gnuCommon + + clang --version + ;; +*) + echo "Host compiler is default" + gcc --version + ;; +esac + +(cd epics-base && git log -n1 ) + +EPICS_HOST_ARCH=`sh epics-base/startup/EpicsHostArch` + +case "$CMPLR" in +clang) + echo "Host compiler is clang" + cat << EOF >> epics-base/configure/os/CONFIG_SITE.Common.$EPICS_HOST_ARCH +GNU = NO +CMPLR_CLASS = clang +CC = clang +CCC = clang++ +EOF + + # hack + sed -i -e 's/CMPLR_CLASS = gcc/CMPLR_CLASS = clang/' epics-base/configure/CONFIG.gnuCommon + + clang --version + ;; +*) + echo "Host compiler is default" + gcc --version + ;; +esac + +make -j2 -C epics-base diff --git a/requirements-deb7.txt b/requirements-deb7.txt new file mode 100644 index 0000000..84d50dc --- /dev/null +++ b/requirements-deb7.txt @@ -0,0 +1,2 @@ +numpy==1.6.2 +nose==1.1.2 diff --git a/requirements-deb8.txt b/requirements-deb8.txt new file mode 100644 index 0000000..135f812 --- /dev/null +++ b/requirements-deb8.txt @@ -0,0 +1,2 @@ +numpy==1.8.2 +nose==1.3.4 diff --git a/requirements-deb9.txt b/requirements-deb9.txt new file mode 100644 index 0000000..d3e0a04 --- /dev/null +++ b/requirements-deb9.txt @@ -0,0 +1,2 @@ +numpy==1.12.1 +nose==1.3.7