forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
98 lines (81 loc) · 2.02 KB
/
Copy pathconfig.yml
File metadata and controls
98 lines (81 loc) · 2.02 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Circle CI configuration file
# https://circleci.com/docs/
version: 2.1
###########################################
# Define some common steps as YAML anchors.
#
apt-run: &apt-install
name: Install apt packages
command: |
apt-get -qq update
apt-get install -y \
gcc \
g++ \
make
env-run: &env-setup
# Create the basic testing environment
# Mixing conda-forge and defaults in root is a recipe for trouble, so create
# a separate environment.
name: Setup conda environment
command: |
conda config --set always_yes yes --set changeps1 no --set show_channel_urls yes
conda create -n test-environment python=$PYTHON_VERSION
conda config --add channels conda-forge
deps-run: &deps-install
name: Install Python dependencies
command: |
conda install -n test-environment --quiet \
cython \
'matplotlib>3.3' \
numpy \
owslib \
pillow \
'proj<8' \
pyepsg \
pykdtree \
pyshp \
requests \
scipy \
setuptools_scm \
setuptools_scm_git_archive \
shapely \
$EXTRA_PACKAGES \
--file docs/doc-requirements.txt
conda list -n test-environment
cp-run: &cp-install
name: Install Cartopy
command: |
source activate test-environment
pip install -ve .
doc-run: &doc-build
name: Build documentation
command: |
source activate test-environment
make -C docs html
##########################################
# Here is where the real jobs are defined.
#
jobs:
docs-python3:
docker:
- image: continuumio/miniconda3:latest
steps:
- checkout
- run: *apt-install
- run:
<<: *env-setup
environment:
PYTHON_VERSION: 3
- run: *deps-install
- run: *cp-install
- run: *doc-build
- store_artifacts:
path: docs/build/html
#########################################
# Defining workflows gets us parallelism.
#
workflows:
version: 2
build:
jobs:
- docs-python3