Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
175 additions
and
167 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 |
---|---|---|
@@ -1,28 +1,78 @@ | ||
# CI for Windows | ||
# Here not repeating LINTING and similar done with Travis (only this may make sense later) | ||
# For info syntax used in this file see: https://docs.microsoft.com/azure/devops/pipelines/languages/python | ||
|
||
schedules: | ||
- cron: "0 9 * * Mon" | ||
displayName: Weekly tests | ||
branches: | ||
include: | ||
- master | ||
- releases-* | ||
always: true | ||
|
||
trigger: | ||
- master | ||
- release-* | ||
|
||
pr: | ||
- master | ||
- release-* | ||
|
||
jobs: | ||
- template: pipelines/docker_template.yml | ||
parameters: | ||
name: Ubuntu_Default_Unit_Tests | ||
vmImage: ubuntu-latest | ||
test_type: unit | ||
full_install: False | ||
|
||
- template: pipelines/docker_template.yml | ||
parameters: | ||
name: Ubuntu_Full_Unit_Tests | ||
vmImage: ubuntu-latest | ||
test_type: unit | ||
full_install: True | ||
coverage: True | ||
|
||
- template: pipelines/docker_template.yml | ||
parameters: | ||
name: Ubuntu_Default_System_Tests | ||
vmImage: ubuntu-latest | ||
test_type: system | ||
full_install: False | ||
|
||
- template: pipelines/docker_template.yml | ||
parameters: | ||
name: Ubuntu_Full_System_Tests | ||
vmImage: ubuntu-latest | ||
test_type: system | ||
full_install: True | ||
|
||
- template: pipelines/docker_template.yml | ||
parameters: | ||
name: Ubuntu_Linting_Tests | ||
vmImage: ubuntu-latest | ||
test_type: linting | ||
full_install: True | ||
|
||
- job: 'Windows_Default_Unit_Tests' | ||
pool: | ||
vmImage: 'windows-latest' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
displayName: 'Use Python $(python.version)' | ||
|
||
- script: | | ||
python -m pip install -r requirements.txt | ||
python -m pip install .[bumps,DFO,minuit,SAS] | ||
displayName: 'Install FitBenchmarking and requirements' | ||
pool: | ||
vmImage: 'windows-latest' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
displayName: 'Use Python $(python.version)' | ||
|
||
- script: | | ||
pip install -r requirements.txt | ||
pip install .[bumps,DFO,minuit,SAS] | ||
displayName: 'Install FitBenchmarking and requirements' | ||
|
||
- script: | | ||
bash travis/unit_tests_default.sh | ||
displayName: 'unit testing' | ||
- script: | | ||
bash pipelines/unit_tests_default.sh | ||
displayName: 'unit testing' |
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
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,66 @@ | ||
# Template for using docker | ||
|
||
# From https://docs.microsoft.com/en-gb/azure/devops/pipelines/process/templates?view=azure-devops#job-stage-and-step-templates-with-parameters | ||
|
||
parameters: | ||
- name: name | ||
default: Ubuntu_Bionic | ||
- name: vmImage | ||
default: ubuntu-18.04 | ||
- name: test_type | ||
default: unit | ||
- name: full_install | ||
type: boolean | ||
default: False | ||
- name: coverage | ||
type: boolean | ||
default: False | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
|
||
variables: | ||
- group: coverage | ||
|
||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
|
||
${{ if eq(parameters.full_install, true) }}: | ||
container: | ||
image: fitbenchmarking/fitbenchmarking-extras:latest | ||
${{ if eq(parameters.full_install, false) }}: | ||
container: | ||
image: fitbenchmarking/fitbenchmarking-deps:latest | ||
|
||
steps: | ||
- script: | | ||
env | ||
sudo -E --preserve-env=PATH /opt/venv/bin/python -m pip install -r requirements.txt | ||
sudo -E --preserve-env=PATH /opt/venv/bin/python -m pip install .[bumps,DFO,minuit,SAS] | ||
displayName: 'Install FitBenchmarking and requirements' | ||
- ${{ if eq(parameters.full_install, true) }}: | ||
- script: | | ||
sudo -E mkdir -p $MASTSIF | ||
sudo -E chown $(whoami) $MASTSIF | ||
sudo -E mkdir -p $PYCUTEST_CACHE | ||
sudo -E chown $(whoami) $PYCUTEST_CACHE | ||
pipelines/${{ parameters.test_type }}_tests.sh | ||
displayName: 'Running ${{ parameters.test_type }} tests - Full Install' | ||
- ${{ if eq(parameters.full_install, false) }}: | ||
- script: | | ||
pipelines/${{ parameters.test_type }}_tests_default.sh | ||
displayName: 'Running ${{ parameters.test_type }} tests - Default Install' | ||
- ${{ if eq(parameters.coverage, true) }}: | ||
- script: | | ||
# Hack while coveralls doesn't explicitly support Azure | ||
export TRAVIS_JOB_ID=$BUILD_BUILDNUMBER | ||
export TRAVIS_BRANCH=$BUILD_SOURCEBRANCH | ||
mv .coverage .coverage.docker | ||
coverage combine --append | ||
coveralls | ||
displayName: 'Update Coverage' | ||
env: | ||
COVERALLS_REPO_TOKEN: $(token) | ||
COVERALLS_SERVICE_NAME: azure-pipelines |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ coveralls | |
python-coveralls | ||
urllib3==1.23 | ||
coverage<5.0 | ||
pylint | ||
flake8 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.