Skip to content

Commit

Permalink
Merge pull request #3 from CybercentreCanada/update/build-pipeline
Browse files Browse the repository at this point in the history
Fix up build pipeline
  • Loading branch information
cccs-kevin authored May 26, 2023
2 parents 700a246 + 9886a8f commit 03de308
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
27 changes: 18 additions & 9 deletions pipelines/azure-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,26 @@ jobs:
versionSpec: 3.9

- script: |
set -x
python -m pip install -U tox
python -m tox
displayName: Test
set -xv # Echo commands before they are run
export VERSION=${BUILD_SOURCEBRANCH#"refs/tags/v"}
echo $VERSION > assemblyline_service_utilities/VERSION
sudo env "PATH=$PATH" python -m pip install --no-cache-dir -U wheel pip
python setup.py bdist_wheel
displayName: Build
- script: |
set -x
python -m pip install -U build
python -m build
ls dist
displayName: Build
set -xv # Echo commands before they are run
sudo apt-get update
sudo apt-get install -y build-essential libffi-dev libfuzzy-dev python3-dev
displayName: Setup Environment
- script: |
set -xv # Echo commands before they are run
export VERSION=${BUILD_SOURCEBRANCH#"refs/tags/v"}
sudo env "PATH=$PATH" python -m pip install -f dist/ "assemblyline-service-utilities[test]==${VERSION}"
sudo env "PATH=$PATH" python -m pip install -r test/requirements.txt
python -m pytest -p no:cacheprovider --durations=10 -rsx -xsvvv --disable-warnings
displayName: Test
- script: |
set -xv # Echo commands before they are run
Expand Down
7 changes: 0 additions & 7 deletions tox.ini

This file was deleted.

0 comments on commit 03de308

Please sign in to comment.