Skip to content

Commit

Permalink
Merge pull request #2063 from Zac-HD/faster-build
Browse files Browse the repository at this point in the history
Faster build on Azure Pipelines
  • Loading branch information
Zac-HD committed Aug 4, 2019
2 parents d9a550a + 7d06a24 commit a89af2d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
check-pandas25:
TASK: check-pandas25
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- script: sudo apt-get update && sudo apt-get install libreadline-dev libsqlite3-dev shellcheck
displayName: Install apt dependencies
- script: ./build.sh check-installed
Expand Down Expand Up @@ -132,6 +135,9 @@ jobs:
check-py36:
TASK: check-py36
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- script: |
brew update
brew install readline xz ncurses
Expand Down
11 changes: 8 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ SCRIPTS="$ROOT/tooling/scripts"
# shellcheck source=tooling/scripts/common.sh
source "$SCRIPTS/common.sh"

"$SCRIPTS/ensure-python.sh" 3.6.5

PYTHON=$(pythonloc 3.6.5)/bin/python
if [ -n "${PIPELINE_WORKSPACE-}" ] ; then
# We're on Azure Pipelines and already set up a suitable Python
PYTHON=$(command -v python)
else
# Otherwise, we install it from scratch
"$SCRIPTS/ensure-python.sh" 3.6.8
PYTHON=$(pythonloc 3.6.8)/bin/python
fi

TOOL_REQUIREMENTS="$ROOT/requirements/tools.txt"

Expand Down
4 changes: 2 additions & 2 deletions tooling/src/hypothesistooling/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def run_tox(task, version):

PY27 = "2.7.14"
PY35 = "3.5.5"
PY36 = "3.6.5"
PY36 = "3.6.8"
PY37 = "3.7.0"
PYPY2 = "pypy2.7-5.10.0"
PYPY3 = "pypy3.5-5.10.1"
Expand Down Expand Up @@ -477,7 +477,7 @@ def check_examples2():

@examples_task
def check_examples3():
run_tox("examples2", PY36)
run_tox("examples3", PY36)


@python_tests
Expand Down

0 comments on commit a89af2d

Please sign in to comment.