Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Travis CI for Azure #37

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

73 changes: 73 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
trigger:
branches:
include:
- master

pr:
autoCancel: true
branches:
include:
- master

schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build for master
branches:
include:
- master
always: true


stages:
- stage: Test
jobs:
- job: NoBleeding
strategy:
matrix:
Python36Ubuntu:
imageName: 'ubuntu-latest'
python.version: 3.6
Python37Ubuntu:
imageName: 'ubuntu-latest'
python.version: 3.7
Python36macOS:
imageName: 'macOS-latest'
python.version: 3.6
Python37macOS:
imageName: 'macOS-latest'
python.version: 3.7

pool:
vmImage: $(imageName)

steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add Conda to path

- bash: sudo chown -R $USER $CONDA
condition: eq( variables['Agent.OS'], 'Darwin' )
displayName: Take ownership of conda installation

- bash: |
conda config --set always_yes yes --set changeps1 no
displayName: Add relavent Channels

- bash: |
conda update -c defaults conda
conda update --all
conda env create -n test-environment python=$(python.version) --file environment.yml

source activate test-environment
pip install -e .
displayName: Create Conda env, Activate, Install dependencies, Install Branch

- bash: |
source activate test-environment
pip install pytest-azurepipelines
python -m pytest -v --pyargs msibi --cov=msibi
displayName: Run Tests

- bash: |
coveralls
condition: and( eq( variables['Agent.OS'], 'Linux' ), eq( variables['python.version'], '3.7' ) )
displayName: Upload Coverage Report
17 changes: 0 additions & 17 deletions devtools/travis-ci/install.sh

This file was deleted.