From 260160ade1adc969492485941b37c202e02792d4 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 6 May 2019 10:23:45 -0400 Subject: [PATCH] VMTYPE env variable for build vs test --- .travis.yml | 11 +++++++++++ src/travis/linux-x86_64-before-install.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0234ef6a..7db1753b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ matrix: env: - GAMOS=linux - PLATFORM=x86_64 + - VMTYPE=build - os: linux name: "Linux 64-bit Trusty" dist: trusty @@ -16,6 +17,7 @@ matrix: env: - GAMOS=linux - PLATFORM=x86_64 + - VMTYPE=build - os: linux name: "Linux 64-bit Precise" dist: precise @@ -23,12 +25,15 @@ matrix: env: - GAMOS=linux - PLATFORM=x86_64 + - VMTYPE=build - os: linux name: "Linux 64-bit Xenial - Python 3.5 Source Testing" dist: xenial language: python python: - "3.5" + env: + - VMTYPE=test deploy: true # skips full deploy steps - os: linux name: "Linux 64-bit Xenial - Python 3.6 Source Testing" @@ -36,6 +41,8 @@ matrix: language: python python: - "3.6" + env: + - VMTYPE=test deploy: true - os: linux name: "Linux 64-bit Xenial - Python 3.8-dev Source Testing" @@ -43,12 +50,16 @@ matrix: language: python python: - "3.8-dev" + env: + - VMTYPE=test deploy: true - os: linux name: "Linux 64-bit Xenial - Python nightly Source Testing" dist: xenial python: - "nightly" + env: + - VMTYPE=test deploy: true - os: osx name: "MacOS 64-bit" diff --git a/src/travis/linux-x86_64-before-install.sh b/src/travis/linux-x86_64-before-install.sh index d66d94b3..a731445e 100755 --- a/src/travis/linux-x86_64-before-install.sh +++ b/src/travis/linux-x86_64-before-install.sh @@ -1,4 +1,4 @@ -if [ -n $TRAVIS_PYTHON_VERSION ]; then +if [ "$VMTYPE" == "test" ]; then export python="python" export pip="pip" echo "Travis setup Python $TRAVIS_PYTHON_VERSION"