-
Notifications
You must be signed in to change notification settings - Fork 4
/
.wercker.yml
113 lines (110 loc) · 3.5 KB
/
.wercker.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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
build:
box:
id: "nanshe/nanshe_notebook:latest"
entrypoint: /opt/conda/bin/tini -- /usr/share/docker/entrypoint.sh
steps:
- script:
name: Ensure clean repo.
code: |-
git update-index -q --refresh
- script:
name: Python 2 environment version details.
code: |-
conda2 list
- script:
name: Python 3 environment version details.
code: |-
conda3 list
- script:
name: Build the Python 2 package and clean up after.
code: |-
mv .git/shallow .git/shallow-not || true
conda2 build nanshe_workflow.recipe
mv .git/shallow-not .git/shallow || true
rm -rf /opt/conda2/conda-bld/work/*
- script:
name: Build the Python 3 package and clean up after.
code: |-
mv .git/shallow .git/shallow-not || true
conda3 build nanshe_workflow.recipe
mv .git/shallow-not .git/shallow || true
rm -rf /opt/conda3/conda-bld/work/*
- script:
name: Install for Python 2 and clean up.
code: |-
conda2 install -y --use-local nanshe_workflow
conda2 clean -tipsy
- script:
name: Install for Python 3 and clean up.
code: |-
conda3 install -y --use-local nanshe_workflow
conda3 clean -tipsy
- script:
name: Restrict OpenBLAS to a single thread.
code: |-
export OPENBLAS_NUM_THREADS=1
- script:
name: Use spawn to start Dask Distributed workers.
code: |-
export DASK_DISTRIBUTED__WORKER__MULTIPROCESSING_METHOD="spawn"
- script:
name: Test notebook(s) on Python 2.
code: |-
python2 setup.py test
- script:
name: Test notebook(s) on Python 3.
code: |-
python3 setup.py test
build_sge:
box:
id: "nanshe/nanshe_notebook:sge"
entrypoint: /opt/conda/bin/tini -- /usr/share/docker/entrypoint.sh /usr/share/docker/entrypoint_2.sh
steps:
- script:
name: Ensure clean repo.
code: |-
git update-index -q --refresh
- script:
name: Python 2 environment version details.
code: |-
conda2 list
- script:
name: Python 3 environment version details.
code: |-
conda3 list
- script:
name: Build the Python 2 package and clean up after.
code: |-
mv .git/shallow .git/shallow-not || true
conda2 build nanshe_workflow.recipe
mv .git/shallow-not .git/shallow || true
rm -rf /opt/conda2/conda-bld/work/*
- script:
name: Build the Python 3 package and clean up after.
code: |-
mv .git/shallow .git/shallow-not || true
conda3 build nanshe_workflow.recipe
mv .git/shallow-not .git/shallow || true
rm -rf /opt/conda3/conda-bld/work/*
- script:
name: Install for Python 2 and clean up.
code: |-
conda2 install -y --use-local nanshe_workflow
conda2 clean -tipsy
- script:
name: Install for Python 3 and clean up.
code: |-
conda3 install -y --use-local nanshe_workflow
conda3 clean -tipsy
- script:
name: Restrict OpenBLAS to a single thread.
code: |-
export OPENBLAS_NUM_THREADS=1
- script:
name: Test notebook(s) on Python 2.
code: |-
python2 setup.py test
- script:
name: Test notebook(s) on Python 3.
code: |-
python3 setup.py test