-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
101 lines (91 loc) · 3.01 KB
/
.gitlab-ci.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
variables:
TWINE_USERNAME: SECURE
TWINE_PASSWORD: SECURE
TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/
PYBIN: /opt/python/cp35-cp35m/bin
stages:
- deploy
- web
build:
image: "quay.io/pypa/manylinux2010_x86_64"
stage: deploy
# install SWIG
before_script:
- alias python3=/opt/python/cp35-cp35m/bin/python
- PATH=/opt/python/cp35-cp35m/bin/:$PATH; export PATH
- yum -y -q update
- yum install -y -q https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- yum -y -q groupinstall "Development Tools"
- yum -y -q --enablerepo=extras install epel-release
- yum install -y -q bison flex git centos-release-scl
- yum install -y -q wget curl
- yum install -y -q automake autoconf pcre-devel
- yum -y -q update
- /opt/python/cp35-cp35m/bin/pip install -U setuptools wheel twine auditwheel
#- /opt/python/cp35-cp35m/bin/pip install -U anybadge
- git clone https://github.com/swig/swig.git
- cd swig
- git checkout rel-4.0.0
- ./autogen.sh
- ./configure
- make
- make install
- cd ..
- /opt/python/cp35-cp35m/bin/pip install -U pdoc3 gdown matplotlib==3.0.3
# compile libcolgraph and copy status (build.svg) to public/
script:
- alias python3=/opt/python/cp35-cp35m/bin/python
- PATH=/opt/python/cp35-cp35m/bin/:$PATH; export PATH
- git clone https://github.com/m7thon/doxy2swig
- mv doxy2swig/doxy2swig.py .
- rm -rf doxy2swig
- mv doxy2swig.py doxy2swig
- chmod +x doxy2swig
- PATH=$PATH:$PWD; export PATH
- make docs
- /opt/python/cp35-cp35m/bin/python setup.py sdist bdist_wheel
- auditwheel repair dist/*.whl -w dist
- /opt/python/cp35-cp35m/bin/python -m twine upload dist/*.tar.gz --verbose
- /opt/python/cp35-cp35m/bin/python -m twine upload dist/*manylinux*.whl --verbose
after_script:
- alias python3=/opt/python/cp35-cp35m/bin/python
- PATH=/opt/python/cp35-cp35m/bin/:$PATH; export PATH
- mkdir -p public/static
- cp libcolgraph/web/static/favicon.ico public/static
- cd public
- gdown --id 1hS59BEj-FrsZvgbUKsMHEKZ7Y3rSkRu0
- tar xzvf demo.tar.gz
- rm demo.tar.gz
- cd ..
artifacts:
paths:
- public/
- build/
- dist/
- docs/
- libcolgraph.egg-info/
- setup.py
- requirements.txt
only:
refs:
- master
changes:
- .pipeline.trigger
allow_failure: false
environment:
name: dev
pages:
stage: web
dependencies:
- build
script:
- mkdir -p public
#- mv public/index.txt public/index.html
artifacts:
paths:
- public/
only:
refs:
- master
changes:
- .pipeline.trigger