Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Update Azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyabsk committed Jun 25, 2019
1 parent bec9e0a commit 99f5435
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 14 deletions.
37 changes: 23 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.13'
trigger:
- master
- development
Expand Down Expand Up @@ -36,11 +30,17 @@ jobs:
sudo apt install swig3.0
sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
displayName: Install swig on Linux
- template: ci/install.yml
- script: tox -e py
displayName: 'Run Tox'
- script: poetry run coveralls
- template: ci/install_poetry.yml
- script: $HOME/.poetry/bin/poetry install -vvv -E dev
displayName: Install all packages
- script: $HOME/.poetry/bin/poetry run pytest
displayName: Run Pytest
env:
FORESHADOW_TESTS: ALL
- script: $HOME/.poetry/bin/poetry run coveralls
condition: succeeded()
env:
COVERALLS_REPO_TOKEN: $(coveralls_token)

#MacOS
- job: install_macos
Expand All @@ -52,7 +52,16 @@ jobs:
Python36:
python.version: '3.6'
steps:
- script: brew install swig
- template: ci/install.yml
- script: tox -e py
displayName: 'Run Tox'
- script: |
brew install swig
brew install gcc@5
displayName: Install Brew packages
- template: ci/install_poetry.yml
- script: $HOME/.poetry/bin/poetry install -vvv
displayName: Install packages
- script: export CC=gcc-5; export CXX=g++-5; $HOME/.poetry/bin/poetry install -vvv -E dev
displayName: Install extras
- script: $HOME/.poetry/bin/poetry run pytest
displayName: Run Pytest
env:
FORESHADOW_TESTS: ALL
9 changes: 9 additions & 0 deletions ci/install_poetry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: |
pip install --upgrade pip
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
displayName: Install Poetry
9 changes: 9 additions & 0 deletions ci/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- script: |
pip install pre-commit
pre-commit install-hooks
pre-commit run --all-files
displayName: Running pre-commit on all files

0 comments on commit 99f5435

Please sign in to comment.