forked from solvcon/solvcon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
99 lines (89 loc) · 2.63 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
image: solvcon/solvcon_build:latest
stages:
- build
- test
before_script:
- which g++; g++ --version
- which python3; python3 --version
libmarch:opt:
stage: build
script:
- mkdir -p ${CI_PROJECT_DIR}/libmarch/build/opt
- cd ${CI_PROJECT_DIR}/libmarch/build/opt
- cmake -DPYTHON_EXECUTABLE:FILEPATH=`which python3`
-DCMAKE_BUILD_TYPE=Release
-DTESTFILTER="*"
${CI_PROJECT_DIR}/libmarch
- make -C ${CI_PROJECT_DIR}/libmarch/build/opt VERBOSE=1
- make -C ${CI_PROJECT_DIR}/libmarch/build/opt run_gtest VERBOSE=1
libmarch:dbg:
stage: build
script:
- mkdir -p ${CI_PROJECT_DIR}/libmarch/build/dbg
- cd ${CI_PROJECT_DIR}/libmarch/build/dbg
- cmake -DPYTHON_EXECUTABLE:FILEPATH=`which python3`
-DCMAKE_BUILD_TYPE=Debug
-DTESTFILTER="*"
${CI_PROJECT_DIR}/libmarch
- make -C ${CI_PROJECT_DIR}/libmarch/build/dbg VERBOSE=1
- make -C ${CI_PROJECT_DIR}/libmarch/build/dbg run_gtest VERBOSE=1
solvcon:opt:
stage: build
script:
- make VERBOSE=1
- nosetests3 --with-doctest -v
artifacts:
untracked: true
solvcon:package:
stage: build
script:
- make SC_PURE_PYTHON=1 package
- make SC_PURE_PYTHON=1 build_from_package
- make VERBOSE=1 SC_PURE_PYTHON=1 test_from_package
artifacts:
paths:
- dist/SOLVCON*.tar.gz
solvcon:deb:
stage: build
script:
- |
export DEBIAN_FRONTEND=noninteractive
apt-get -qq update
apt-get -qqy install fakeroot debhelper locales \
libreadline7 libssl1.0.0 libffi6 \
liblapack3 liblapack-dev libhdf5-100 libhdf5-dev libnetcdf13 \
libnetcdf-dev libscotch-6.0 libscotch-dev cython3 python3 \
python3-numpy libpython3.6-dev python3-boto python3-paramiko graphviz
- make SC_PURE_PYTHON=1 deb
artifacts:
paths:
- dist/debbuild/*
solvcon:opt:test:gasplus:
dependencies:
- solvcon:opt
stage: test
script:
- nosetests3 ftests/gasplus/* -v
solvcon:opt:test:parallel:
dependencies:
- solvcon:opt
stage: test
script:
- nosetests3 ftests/parallel/* -v
solvcon:deb:test:
dependencies:
- solvcon:deb
stage: test
script:
- |
export DEBIAN_FRONTEND=noninteractive
apt-get -qq update
apt-get -qqy install \
libreadline7 libssl1.0.0 libffi6 \
liblapack3 liblapack-dev libhdf5-100 libhdf5-dev libnetcdf13 \
libnetcdf-dev libscotch-6.0 libscotch-dev cython3 python3 \
python3-numpy libpython3.6-dev python3-boto python3-paramiko graphviz
- dpkg -i dist/debbuild/*.deb
- cd /tmp
- python3 -c 'import solvcon ; print(solvcon)'
- python3 -c 'import solvcon ; solvcon.test()'