From c3d8b0da7c42c18df52649cfc1e7caa4aa0b82c3 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Sun, 24 Mar 2019 17:38:04 -0700 Subject: CI: Refactor environment variables * Remove variables from build job * Move all variables to the test job * Remove LIBRARY_PATH * Remove PIPENV_VENV_IN_PROJECT; redundant because of --system option * Add PIPENV_DONT_USE_PYENV; might save a tiny amount of time? --- azure-pipelines.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4946413a..d603079e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,12 +1,5 @@ # https://aka.ms/yaml -variables: - LIBRARY_PATH: /lib:/usr/lib - PIPENV_HIDE_EMOJIS: 1 - PIPENV_IGNORE_VIRTUALENVS: 1 - PIPENV_NOSPIN: 1 - PIPENV_VENV_IN_PROJECT: 1 - jobs: - job: test displayName: 'Lint & Test' @@ -15,9 +8,13 @@ jobs: vmImage: 'Ubuntu 16.04' variables: - PIPENV_CACHE_DIR: ".cache/pipenv" PIP_CACHE_DIR: ".cache/pip" PIP_SRC: ".cache/src" + PIPENV_CACHE_DIR: ".cache/pipenv" + PIPENV_DONT_USE_PYENV: 1 + PIPENV_HIDE_EMOJIS: 1 + PIPENV_IGNORE_VIRTUALENVS: 1 + PIPENV_NOSPIN: 1 - task: UsePythonVersion@0 displayName: 'Set Python version' @@ -38,10 +35,6 @@ jobs: displayName: 'Build Containers' dependsOn: 'test' - variables: - PIPENV_CACHE_DIR: ".cache/pipenv" - PIP_CACHE_DIR: ".cache/pip" - steps: - task: Docker@1 displayName: 'Login: Docker Hub' -- cgit v1.2.3