This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into development
- Loading branch information
Showing
8 changed files
with
247 additions
and
160 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
trigger: | ||
- master | ||
- development | ||
|
||
pr: | ||
branches: | ||
include: | ||
- '*' | ||
|
||
jobs: | ||
# QA | ||
- job: lint | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- template: ci/lint.yml | ||
|
||
# Linux | ||
# TODO: Turn off Linux Testing until https://github.com/sdispater/poetry/issues/1197 is resolved | ||
# - job: install_linux | ||
# dependsOn: lint | ||
# pool: | ||
# vmImage: 'ubuntu-16.04' | ||
# strategy: | ||
# matrix: | ||
# Python36: | ||
# python.version: '3.6' | ||
# steps: | ||
# - bash: | | ||
# sudo apt update | ||
# sudo apt install swig3.0 | ||
# sudo ln -s /usr/bin/swig3.0 /usr/bin/swig | ||
# displayName: Install swig on Linux | ||
# - template: ci/install.yml | ||
# - template: ci/tests.yml | ||
|
||
#MacOS | ||
- job: install_macos | ||
dependsOn: lint | ||
pool: | ||
vmImage: 'macOS-10.13' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
steps: | ||
- script: | | ||
brew install swig | ||
brew install gcc@5 | ||
displayName: Install Brew packages | ||
- template: ci/install.yml | ||
- template: ci/tests.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
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 | ||
- script: $HOME/.poetry/bin/poetry install -vvv -E dev | ||
condition: eq( variables['Agent.OS'], 'Linux' ) | ||
displayName: Install all packages (Linux) | ||
- script: | | ||
$HOME/.poetry/bin/poetry install -vvv | ||
export CC=gcc-5; export CXX=g++-5; $HOME/.poetry/bin/poetry install -vvv -E dev | ||
condition: eq( variables['Agent.OS'], 'Darwin' ) | ||
displayName: Install all packages (MacOS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
steps: | ||
- script: $HOME/.poetry/bin/poetry run pytest | ||
env: | ||
FORESHADOW_TESTS: ALL | ||
displayName: Run pytest | ||
# TODO: Switch back to 'Linux' when https://github.com/sdispater/poetry/issues/1197 is resolved | ||
- script: $HOME/.poetry/bin/poetry run coveralls | ||
condition: and(succeeded(), eq( variables['Agent.OS'], 'Darwin' )) | ||
env: | ||
COVERALLS_REPO_TOKEN: $(coveralls_token) | ||
displayName: Submit coveralls report |
Oops, something went wrong.