From d11309d6a18e7946fbf1a1bd58ce81af331b200e Mon Sep 17 00:00:00 2001 From: Martin Konrad Date: Wed, 29 May 2019 14:32:08 -0400 Subject: [PATCH] Rename base branch environment variable Let's use a less cryptic variable name for this important variable. --- .travis.yml.example-full | 24 ++++++++++++------------ .travis.yml.example-mini | 4 ++-- travis-prepare.sh | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.travis.yml.example-full b/.travis.yml.example-full index cbc0adb..33eb665 100644 --- a/.travis.yml.example-full +++ b/.travis.yml.example-full @@ -32,47 +32,47 @@ matrix: # Different configurations of default gcc and clang - - env: BRBASE=7.0 + - env: BASE_BRANCH=7.0 - - env: BRBASE=7.0 CMPLR=clang + - env: BASE_BRANCH=7.0 CMPLR=clang compiler: clang - - env: BRBASE=7.0 EXTRA="CMD_CXXFLAGS=-std=c++11" + - env: BASE_BRANCH=7.0 EXTRA="CMD_CXXFLAGS=-std=c++11" - - env: BRBASE=7.0 CMPLR=clang EXTRA="CMD_CXXFLAGS=-std=c++11" + - env: BASE_BRANCH=7.0 CMPLR=clang EXTRA="CMD_CXXFLAGS=-std=c++11" compiler: clang # Cross-compilation to Windows using MinGW and WINE - - env: BRBASE=7.0 WINE=32 TEST=NO STATIC=YES + - env: BASE_BRANCH=7.0 WINE=32 TEST=NO STATIC=YES compiler: mingw - - env: BRBASE=7.0 WINE=32 TEST=NO STATIC=NO + - env: BASE_BRANCH=7.0 WINE=32 TEST=NO STATIC=NO compiler: mingw # Cross-compilation to RTEMS - - env: BRBASE=7.0 RTEMS=4.10 TEST=NO + - env: BASE_BRANCH=7.0 RTEMS=4.10 TEST=NO - - env: BRBASE=7.0 RTEMS=4.9 TEST=NO + - env: BASE_BRANCH=7.0 RTEMS=4.9 TEST=NO # Other gcc versions (adding as an extra package) - - env: BRBASE=7.0 CMPLR=gcc-6 + - env: BASE_BRANCH=7.0 CMPLR=gcc-6 dist: xenial compiler: gcc-6 addons: { apt: { packages: ["g++-6"], sources: ["ubuntu-toolchain-r-test"] } } - - env: BRBASE=7.0 CMPLR=gcc-7 + - env: BASE_BRANCH=7.0 CMPLR=gcc-7 dist: xenial compiler: gcc-7 addons: { apt: { packages: ["g++-7"], sources: ["ubuntu-toolchain-r-test"] } } # MacOS build - - env: BRBASE=7.0 + - env: BASE_BRANCH=7.0 os: osx compiler: clang # All above jobs can be defined for other branches of EPICS Base -# by setting BRBASE to the branch name, e.g. 3.15 +# by setting BASE_BRANCH to the branch name, e.g. 3.15 diff --git a/.travis.yml.example-mini b/.travis.yml.example-mini index 22fa1ca..322b629 100644 --- a/.travis.yml.example-mini +++ b/.travis.yml.example-mini @@ -24,5 +24,5 @@ script: matrix: include: - - env: BRBASE=7.0 - - env: BRBASE=3.15 + - env: BASE_BRANCH=7.0 + - env: BASE_BRANCH=3.15 diff --git a/travis-prepare.sh b/travis-prepare.sh index ba1f398..1fe18ef 100755 --- a/travis-prepare.sh +++ b/travis-prepare.sh @@ -25,7 +25,7 @@ EOF } # not recursive -git clone --quiet --depth 5 --branch "$BRBASE" https://github.com/${REPOBASE:-epics-base}/epics-base.git epics-base +git clone --quiet --depth 5 --branch "$BASE_BRANCH" https://github.com/${REPOBASE:-epics-base}/epics-base.git epics-base (cd epics-base && git log -n1 ) for modrepo in ${MODULES} do