This repository has been archived by the owner on Jul 23, 2022. It is now read-only.
/
config.yml
94 lines (78 loc) · 2.48 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
version: 2
jobs:
build:
docker:
- image: circleci/python:3.7.0
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v2-dependencies-{{ checksum "requirements.txt" }}
- v2-dependencies-
- run:
name: Install pandoc
command: |
sudo apt-get update
wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-1-amd64.deb
sudo dpkg -i pandoc-2.2.1-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 dvipng
- run:
name: Install 7z, unrar
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 dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v2-dependencies-{{ checksum "requirements.txt" }}
- run:
name: compile and build
command: |
. venv/bin/activate
python setup.py build_ext --inplace
- run:
name: run tests
command: |
. venv/bin/activate
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
mkdir -p test-reports/src
cp -r src/lightmlrestapi test-reports/src
- run:
name: documentation
command: |
. venv/bin/activate
python setup.py build_sphinx
- run:
name: copy documentation
command: |
mkdir -p test-reports/doc
zip -r -9 test-reports/doc/documentation_html.zip _doc/sphinxdoc/build/html
- store_artifacts:
path: test-reports
destination: test-reports