-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from deeptools/azure-pipelines
Set up CI with Azure Pipelines
- Loading branch information
Showing
3 changed files
with
82 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
pr: | ||
autoCancel: true | ||
|
||
jobs: | ||
|
||
- job: 'Linux' | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
Python37: | ||
python.version: '3.7' | ||
Python38: | ||
python.version: '3.8' | ||
|
||
steps: | ||
- bash: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
hash -r | ||
displayName: Add conda to PATH | ||
- bash: | | ||
conda config --set always_yes yes --set changeps1 no | ||
conda info -a | ||
conda create -n hicmatrix --yes -c conda-forge -c bioconda python=$(python.version) --file requirements.txt | ||
source activate hicmatrix | ||
conda install --yes -c conda-forge -c bioconda pytest flake8 pytest-xdist pytest-forked | ||
conda install --yes -c conda-forge -c bioconda nose | ||
conda install --yes pathlib | ||
conda install --yes -c defaults -c conda-forge -c bioconda configparser | ||
python setup.py install | ||
displayName: installing dependencies | ||
- script: | | ||
source activate hicmatrix | ||
flake8 . --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712 | ||
displayName: linting | ||
- script: | | ||
source activate hicmatrix | ||
py.test hicmatrix/test/ --capture=sys | ||
displayName: pytest | ||
- job: 'OSX' | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'macOS-10.14' | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
Python37: | ||
python.version: '3.7' | ||
Python38: | ||
python.version: '3.8' | ||
|
||
steps: | ||
- bash: | | ||
echo "##vso[task.prependpath]$CONDA/bin" | ||
hash -r | ||
displayName: Add conda to PATH | ||
- bash: | | ||
conda config --set always_yes yes --set changeps1 no | ||
conda info -a | ||
conda create -n hicmatrix --yes -c conda-forge -c bioconda python=$(python.version) --file requirements.txt | ||
source activate hicmatrix | ||
conda install --yes -c conda-forge -c bioconda pytest flake8 pytest-xdist pytest-forked | ||
conda install --yes -c conda-forge -c bioconda nose | ||
conda install --yes pathlib | ||
conda install --yes -c defaults -c conda-forge -c bioconda configparser | ||
python setup.py install | ||
displayName: installing dependencies | ||
- script: | | ||
source activate hicmatrix | ||
flake8 . --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712 | ||
displayName: linting | ||
- script: | | ||
source activate hicmatrix | ||
py.test hicmatrix/test/ --capture=sys | ||
displayName: pytest |
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