-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
54 lines (50 loc) · 1.35 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
stages:
- build
- build:docs
- test:doc_example
- test
setup-python-3:
stage: build
script:
- python3 -m venv env
- source env/bin/activate
- pip install -U pip setuptools
- pip install -e .[cython]
tags:
- bacardi
build-documentation-python-3:
stage: build:docs
script:
- python3 -m venv env
- source env/bin/activate
- pip install -U pip setuptools
- pip install -e .[docs]
- python setup.py build_sphinx
tags:
- bacardi
test-documentation-example-python-3:
stage: test:doc_example
script:
- python3 -m venv env
- source env/bin/activate
- pip install -U pip setuptools
- pip install -e .[tests]
- cp -r ./doc/src/content/example/mylib .
- F2x -t @bindc/_glue.f90.t -t @ctypes_noerr/_glue.py.t mylib/test.f90
- gfortran -fPIC -shared -o mylib/libtest.so $(F2x -t bindc -t ctypes_noerr --get libraries) mylib/test.f90 mylib/test_glue.f90
- cp $(F2x -t bindc -t ctypes_noerr --get modules) mylib
- echo -e "from mylib import test_glue as test\ntest.CALL_TEST(123456789)" | python
tags:
- bacardi
test-build-python-3:
stage: test
script:
- python3 -m venv env
- source env/bin/activate
- pip install -U pip setuptools
- pip install -e .[cython,tests]
- cd test
- python setup.py build_ext --inplace
- pytest .
tags:
- bacardi