-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathazure-pipelines.yml
54 lines (46 loc) · 1.45 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# BPG CI/CD Pipeline
# This test suite does the following:
# Sets up anaconda python
# conda installs dependencies for rtree/shapely
# pip installs BAG from ucb-art
# pip installs BPG
# runs BPG test suite
# Run this pipeline whenever a commit is pushed onto master
trigger:
- master
# Run this pipeline whenever a pull request to master or release is executed
# This allows developers to iterate in PRs and get their changes to be clean
pr:
- master
- releases/*
# Perform all of these tests on Ubuntu
# TODO: Extend these tests to be run on Windows + MacOS
pool:
vmImage: 'ubuntu-16.04'
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: 'Add conda to PATH'
- bash: conda create --yes --quiet --name myEnvironment
displayName: 'Create Anaconda environment'
- bash: |
source activate myEnvironment
conda install --yes --name myEnvironment numpy
conda install --yes --name myEnvironment rtree
conda install --yes --name myEnvironment shapely
displayName: 'Install Anaconda dependencies'
- bash: |
source activate myEnvironment
pip install git+https://github.com/ucb-art/BAG_Framework
pip install .
displayName: 'Install BAG and BPG'
- bash: |
source activate myEnvironment
pip install pytest
bpg setup_workspace
bpg setup_test
source sourceme.sh
ls -la
pwd
env
pytest bpg_test_suite
displayName: 'Run BPG test suite'