This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
config.yml
151 lines (128 loc) · 4.64 KB
/
config.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.5
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
- v1-dependencies-
- run:
name: Install pandoc
command: |
sudo apt-get update
wget https://github.com/jgm/pandoc/releases/download/2.1.3/pandoc-2.1.3-1-amd64.deb
sudo dpkg -i pandoc-2.1.3-1-amd64.deb
- run:
name: Install tex
command: |
sudo apt-get install -y texlive
sudo apt-get install -y texlive-latex-extra
sudo apt-get install -y texlive-lang-french
sudo apt-get install -y texlive-xetex
- run:
name: Install 7z
command: |
sudo apt-get install -y p7zip-full
- run:
name: Install InkScape
command: |
sudo apt-get install -y inkscape
- run:
name: Install graphviz
command: |
sudo apt-get install -y graphviz
- run:
name: install avconv (ffmpeg)
command: |
sudo apt-get install libav-tools
- run:
name: Install pygame
command: |
sudo apt-get install libasound2-dev
sudo apt-get install libX11-dev
sudo apt-get -y install xvfb pulseaudio
sudo apt-get install -y python-pygame
- run:
name: install dependencies 1 - requirements_conda
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements_conda.txt
- run:
name: install dependencies 2 - requirements
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- run:
name: install dependencies 2 - cairo
command: |
python3 -m venv venv
. venv/bin/activate
pip install cairocffi cairosvg
- run:
name: install dependencies 3 - sphinxcontrib, datashader, pyPDF, natgrid
command: |
python3 -m venv venv
. venv/bin/activate
pip install git+https://github.com/sdpython/sphinxcontrib-images.git --upgrade --no-deps
pip install git+https://github.com/bokeh/datashader.git --upgrade --no-deps
pip install git+https://github.com/sdpython/pyPdf --upgrade --no-deps
pip install git+https://github.com/matplotlib/natgrid --upgrade --no-deps
- run:
name: install dependencies 4 - fairtest
command: |
python3 -m venv venv
. venv/bin/activate
pip install https://github.com/sdpython/fairtest/releases/download/0.1/fairtest-0.1-py3-none-any.whl
- run:
name: install dependencies 5 - torch
command: |
python3 -m venv venv
. venv/bin/activate
pip3 install http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp36-cp36m-manylinux1_x86_64.whl
pip3 install torchvision
- run:
name: install basemap
command: |
python3 -m venv venv
. venv/bin/activate
sudo apt-get install libgeos-dev
pip install git+https://github.com/matplotlib/basemap.git
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
- run:
name: run tests
command: |
. venv/bin/activate
export AUDIODEV=null
export SDL_VIDEODRIVER=dummy
export SDL_AUDIODRIVER=disk
export DISPLAY=localhost:0.0
python setup.py unittests
- run:
name: wheel
command: |
. venv/bin/activate
python setup.py bdist_wheel
mkdir -p test-reports/dist
cp dist/*.whl test-reports/dist
- run:
name: documentation
command: |
. venv/bin/activate
python setup.py build_sphinx html1 nblight
- run:
name: copy documentation
command: |
mkdir -p test-reports/doc
cp -r _doc/sphinxdoc/build/html test-reports/doc
- store_artifacts:
path: test-reports
destination: test-reports