From 1bc867e48d5b0c8a94c3940a27d7f80b9f726946 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 29 Oct 2018 11:42:04 -0700 Subject: [PATCH] update travis-ci --- .ci/travis-build.sh | 17 ++--------- .ci/travis-prepare.sh | 67 ++++--------------------------------------- .travis.yml | 17 +++++------ 3 files changed, 18 insertions(+), 83 deletions(-) diff --git a/.ci/travis-build.sh b/.ci/travis-build.sh index 9e74a3a..e0c0466 100755 --- a/.ci/travis-build.sh +++ b/.ci/travis-build.sh @@ -1,21 +1,10 @@ #!/bin/sh 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 - export PATH="$HOME/.cache/qemu/usr/bin:$PATH" - echo -n "Using QEMU: " - type qemu-system-i386 || echo "Missing qemu" - EXTRA=RTEMS_QEMU_FIXUPS=YES -fi - -make -j2 $EXTRA +make -j2 if [ "$TEST" != "NO" ] then - make tapfiles - make -s test-results + make -j2 tapfiles + make -j2 -s test-results fi diff --git a/.ci/travis-prepare.sh b/.ci/travis-prepare.sh index 3185706..955c9fb 100755 --- a/.ci/travis-prepare.sh +++ b/.ci/travis-prepare.sh @@ -1,39 +1,6 @@ #!/bin/sh set -e -x -CURDIR="$PWD" - -QDIR="$HOME/.cache/qemu" - -if [ -n "$RTEMS" -a "$TEST" = "YES" ] -then - git clone --quiet --branch vme --depth 10 https://github.com/mdavidsaver/qemu.git "$HOME/.build/qemu" - cd "$HOME/.build/qemu" - - HEAD=`git log -n1 --pretty=format:%H` - echo "HEAD revision $HEAD" - - [ -e "$HOME/.cache/qemu/built" ] && BUILT=`cat "$HOME/.cache/qemu/built"` - echo "Cached revision $BUILT" - - if [ "$HEAD" != "$BUILT" ] - then - echo "Building QEMU" - git submodule --quiet update --init - - install -d "$HOME/.build/qemu/build" - cd "$HOME/.build/qemu/build" - - "$HOME/.build/qemu/configure" --prefix="$HOME/.cache/qemu/usr" --target-list=i386-softmmu --disable-werror - make -j2 - make install - - echo "$HEAD" > "$HOME/.cache/qemu/built" - fi -fi - -cd "$CURDIR" - cat << EOF > configure/RELEASE.local EPICS_BASE=$HOME/.source/epics-base EOF @@ -41,23 +8,8 @@ EOF install -d "$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 ) -} - -if [ "$BRBASE" ] -then - git clone --quiet --depth 5 --branch "$BRBASE" https://github.com/${REPOBASE:-epics-base}/epics-base.git epics-base - (cd epics-base && git log -n1 ) -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}" -fi +git clone --quiet --depth 5 --branch "$BRBASE" https://github.com/${REPOBASE:-epics-base}/epics-base.git epics-base +(cd epics-base && git log -n1 ) EPICS_HOST_ARCH=`sh epics-base/startup/EpicsHostArch` @@ -115,24 +67,17 @@ EOF if [ -n "$RTEMS" ] then echo "Cross RTEMS${RTEMS} for pc386" - install -d /home/travis/.cache - curl -L "https://github.com/mdavidsaver/rsb/releases/download/travis-20160306-2/rtems${RTEMS}-i386-trusty-20190306-2.tar.gz" \ - | tar -C /home/travis/.cache -xj + curl -L "https://github.com/mdavidsaver/rsb/releases/download/20171203-${RTEMS}/i386-rtems${RTEMS}-trusty-20171203-${RTEMS}.tar.bz2" \ + | tar -C / -xmj 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 RTEMS_VERSION=$RTEMS -RTEMS_BASE=/home/travis/.cache/rtems${RTEMS}-i386 +RTEMS_BASE=$HOME/.rtems EOF 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" - EXTRA=RTEMS_QEMU_FIXUPS=YES fi make -j2 -C epics-base $EXTRA diff --git a/.travis.yml b/.travis.yml index 55e17c8..6d5d853 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,19 +11,20 @@ addons: - perl - clang - g++-mingw-w64-i686 + - qemu-system-x86 install: - ./.ci/travis-prepare.sh script: - ./.ci/travis-build.sh env: - - BRCORE=master BRLIBCOM=master - - CMPLR=clang - - USR_CXXFLAGS=-std=c++11 - - CMPLR=clang USR_CXXFLAGS=-std=c++11 - - WINE=32 TEST=NO STATIC=YES - - WINE=32 TEST=NO STATIC=NO - - RTEMS=4.10 TEST=NO - - RTEMS=4.9 TEST=NO + - BRBASE=7.0 CMPLR=gcc + - BRBASE=7.0 CMPLR=clang + - BRBASE=7.0 USR_CXXFLAGS=-std=c++11 + - BRBASE=7.0 CMPLR=clang USR_CXXFLAGS=-std=c++11 + - BRBASE=7.0 WINE=32 TEST=NO STATIC=YES + - BRBASE=7.0 WINE=32 TEST=NO STATIC=NO + - BRBASE=7.0 RTEMS=4.10 TEST=NO + - BRBASE=7.0 RTEMS=4.9 TEST=NO - BRBASE=3.16 - BRBASE=3.15 - BRBASE=3.14