summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-08-28 08:41:18 +0300
committermattip <matti.picus@gmail.com>2019-08-28 11:29:22 +0300
commite5f4c29b1cf1190ec3228413ba1f4e9c94a45569 (patch)
tree7a57923be3d55d353669f202c4e391316bac1399
parentbfe255f6b649af36a5fc976caaab1b5c4e78ffe7 (diff)
downloadnumpy-e5f4c29b1cf1190ec3228413ba1f4e9c94a45569.tar.gz
TEST: try to fail the build if there are new packages
-rw-r--r--azure-pipelines.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 93fe3f629..78971cdb4 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -224,12 +224,14 @@ jobs:
vmIMage: 'ubuntu-16.04'
steps:
- script: |
- python3.6 -mvenv testenv
+ set -e
+ sudo apt-get install python3-venv
+ python3 -mvenv testenv
source testenv/bin/activate
- pip install --upgrade pip setuptools
- pip list -o > /tmp/current_pkgs
- pip install -r test_requirements.txt
- pip list -o > /tmp/test_pkgs
+ python -m pip install --upgrade pip setuptools
+ python -m pip list -o > /tmp/current_pkgs
+ python -m pip install -r test_requirements.txt
+ python -m pip list -o > /tmp/test_pkgs
# any newer packages should cause the diff to return 1, which fails the job
diff /tmp/current_pkgs /tmp/test_pkgs
displayName: 'Show any possible updates to packages'