update travis-ci

This commit is contained in:
Michael Davidsaver
2018-10-29 14:14:55 -07:00
parent 95b23fc6bc
commit 1d689d7e96
3 changed files with 21 additions and 71 deletions

View File

@ -1,16 +1,6 @@
#!/bin/sh #!/bin/sh
set -e -x set -e -x
# set RTEMS to eg. "4.9" or "4.10"
# requires qemu, bison, flex, texinfo, install-info
if [ -n "$RTEMS" ]
then
# find local qemu-system-i386
echo -n "Using QEMU: "
type qemu-system-i386 || echo "Missing qemu"
EXTRA=RTEMS_QEMU_FIXUPS=YES
fi
make -j2 $EXTRA make -j2 $EXTRA
if [ "$TEST" != "NO" ] if [ "$TEST" != "NO" ]

View File

@ -10,24 +10,6 @@ EOF
install -d "$HOME/.source" install -d "$HOME/.source"
cd "$HOME/.source" cd "$HOME/.source"
add_base_module() {
MODULE=$1
BRANCH=$2
( cd epics-base/modules && \
git clone --quiet --depth 5 --branch $MODULE/$BRANCH https://github.com/${REPOBASE:-epics-base}/epics-base.git $MODULE && \
cd $MODULE && git log -n1 )
}
add_gh_module() {
MODULE=$1
REPOOWNER=$2
REPONAME=$3
BRANCH=$4
( cd epics-base/modules && \
git clone --quiet --depth 5 --branch $BRANCH https://github.com/$REPOOWNER/$REPONAME.git $MODULE && \
cd $MODULE && git log -n1 )
}
add_gh_flat() { add_gh_flat() {
MODULE=$1 MODULE=$1
REPOOWNER=$2 REPOOWNER=$2
@ -42,21 +24,11 @@ ${MODULE_UC}=$HOME/.source/$MODULE
EOF EOF
} }
if [ "$BRBASE" ] # not recursive
then git clone --quiet --depth 5 --branch "$BRBASE" https://github.com/${REPOBASE:-epics-base}/epics-base.git epics-base
git clone --quiet --depth 5 --branch "$BRBASE" https://github.com/${REPOBASE:-epics-base}/epics-base.git epics-base (cd epics-base && git log -n1 )
(cd epics-base && git log -n1 ) add_gh_flat pvData ${REPOPVD:-epics-base} pvDataCPP ${BRPVD:-master}
add_gh_flat pvData ${REPOPVD:-epics-base} pvDataCPP ${BRPVD:-master} add_gh_flat pvAccess ${REPOPVA:-epics-base} pvAccessCPP ${BRPVA:-master}
add_gh_flat pvAccess ${REPOPVA:-epics-base} pvAccessCPP ${BRPVA:-master}
else
git clone --quiet --depth 5 --branch core/"${BRCORE:-master}" https://github.com/${REPOBASE:-epics-base}/epics-base.git epics-base
( cd epics-base && git log -n1 )
add_base_module libcom "${BRLIBCOM:-master}"
add_base_module ca "${BRCA:-master}"
add_base_module database "${BRDATABASE:-master}"
add_gh_module pvData ${REPOPVD:-epics-base} pvDataCPP ${BRPVD:-master}
add_gh_module pvAccess ${REPOPVA:-epics-base} pvAccessCPP ${BRPVA:-master}
fi
if [ -e $CURDIR/configure/RELEASE.local ] if [ -e $CURDIR/configure/RELEASE.local ]
then then
@ -119,35 +91,22 @@ EOF
if [ -n "$RTEMS" ] if [ -n "$RTEMS" ]
then then
echo "Cross RTEMS${RTEMS} for pc386" echo "Cross RTEMS${RTEMS} for pc386"
install -d /home/travis/.cache curl -L "https://github.com/mdavidsaver/rsb/releases/download/20171203-${RTEMS}/i386-rtems${RTEMS}-trusty-20171203-${RTEMS}.tar.bz2" \
curl -L "https://github.com/mdavidsaver/rsb/releases/download/travis-20160306-2/rtems${RTEMS}-i386-trusty-20190306-2.tar.gz" \ | tar -C / -xmj
| tar -C /home/travis/.cache -xj
sed -i -e '/^RTEMS_VERSION/d' -e '/^RTEMS_BASE/d' epics-base/configure/os/CONFIG_SITE.Common.RTEMS sed -i -e '/^RTEMS_VERSION/d' -e '/^RTEMS_BASE/d' epics-base/configure/os/CONFIG_SITE.Common.RTEMS
cat << EOF >> epics-base/configure/os/CONFIG_SITE.Common.RTEMS cat << EOF >> epics-base/configure/os/CONFIG_SITE.Common.RTEMS
RTEMS_VERSION=$RTEMS RTEMS_VERSION=$RTEMS
RTEMS_BASE=/home/travis/.cache/rtems${RTEMS}-i386 RTEMS_BASE=$HOME/.rtems
EOF EOF
cat << EOF >> epics-base/configure/CONFIG_SITE cat << EOF >> epics-base/configure/CONFIG_SITE
CROSS_COMPILER_TARGET_ARCHS+=RTEMS-pc386 CROSS_COMPILER_TARGET_ARCHS += RTEMS-pc386-qemu
EOF
# find local qemu-system-i386
export PATH="$HOME/.cache/qemu/usr/bin:$PATH"
echo -n "Using QEMU: "
type qemu-system-i386 || echo "Missing qemu"
cat <<EOF >> epics-base/configure/CONFIG_SITE
RTEMS_QEMU_FIXUPS=YES
EOF EOF
fi fi
make -j2 -C epics-base $EXTRA make -j2 -C epics-base $EXTRA
make -j2 -C pvData $EXTRA
if [ "$BRBASE" ] make -j2 -C pvAccess $EXTRA
then
make -j2 -C pvData $EXTRA
make -j2 -C pvAccess $EXTRA
fi
find epics-base/include find epics-base/include
find epics-base/lib find epics-base/lib

View File

@ -11,19 +11,20 @@ addons:
- perl - perl
- clang - clang
- g++-mingw-w64-i686 - g++-mingw-w64-i686
- qemu-system-x86
install: install:
- ./.ci/travis-prepare.sh - ./.ci/travis-prepare.sh
script: script:
- ./.ci/travis-build.sh - ./.ci/travis-build.sh
env: env:
- BRCORE=master BRLIBCOM=master BRPVD=master BRPVA=master - BRBASE=7.0
- CMPLR=clang - BRBASE=7.0 CMPLR=clang
- EXTRA="CMD_CXXFLAGS=-std=c++98" - BRBASE=7.0 EXTRA="CMD_CXXFLAGS=-std=c++98"
- EXTRA="CMD_CXXFLAGS=-std=c++11" - BRBASE=7.0 EXTRA="CMD_CXXFLAGS=-std=c++11"
- CMPLR=clang EXTRA="CMD_CXXFLAGS=-std=c++11" - BRBASE=7.0 CMPLR=clang EXTRA="CMD_CXXFLAGS=-std=c++11"
- WINE=32 TEST=NO STATIC=YES - BRBASE=7.0 WINE=32 TEST=NO STATIC=YES
- WINE=32 TEST=NO STATIC=NO - BRBASE=7.0 WINE=32 TEST=NO STATIC=NO
- RTEMS=4.10 TEST=NO - BRBASE=7.0 RTEMS=4.10 TEST=NO
- RTEMS=4.9 TEST=NO - BRBASE=7.0 RTEMS=4.9 TEST=NO
- BRBASE=3.16 - BRBASE=3.16
- BRBASE=3.15 - BRBASE=3.15