travis-ci
This commit is contained in:
30
.travis.yml
Normal file
30
.travis.yml
Normal file
@ -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
|
66
build-deps.sh
Executable file
66
build-deps.sh
Executable file
@ -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
|
2
requirements-deb7.txt
Normal file
2
requirements-deb7.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
numpy==1.6.2
|
||||||
|
nose==1.1.2
|
2
requirements-deb8.txt
Normal file
2
requirements-deb8.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
numpy==1.8.2
|
||||||
|
nose==1.3.4
|
2
requirements-deb9.txt
Normal file
2
requirements-deb9.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
numpy==1.12.1
|
||||||
|
nose==1.3.7
|
Reference in New Issue
Block a user