forked from iotivity/iotivity-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
85 lines (76 loc) · 2.18 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
---
image: gcc:9.3.0
Linux_Secured_Test:
variables:
GIT_SUBMODULE_STRATEGY: normal
stage: build
before_script:
- apt update && apt -y install make autoconf
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
script:
- cd port/linux
- make DYNAMIC=1 IPV4=1 TCP=1 SECURE=1 test
Linux_Unsecured_Test:
variables:
GIT_SUBMODULE_STRATEGY: normal
stage: build
before_script:
- apt update && apt -y install make autoconf
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
script:
- cd port/linux
- make DYNAMIC=1 IPV4=1 TCP=1 SECURE=0 test
Linux_with_java:
stage: build
before_script:
- apt update && apt -y install make autoconf swig default-jdk
- swig -version
- java -version
- javac -version
- wget --quiet --output-document=junit-4.13.jar https://search.maven.org/remotecontent?filepath=junit/junit/4.13/junit-4.13.jar
- wget --quiet --output-document=hamcrest-core-1.3.jar https://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
script:
- cd port/linux
- make TCP=1 IPV4=1 CLOUD=1 PKI=1 JAVA=1
- cd -
- cd swig/apps/unit_test
- JUNIT4=../../../junit-4.13.jar ./build-unit-tests.sh
- JUNIT4=../../../junit-4.13.jar HAMCREST_CORE=../../../hamcrest-core-1.3.jar ./run-unit-tests.sh
- cd -
Linux_Compile_Options:
variables:
GIT_SUBMODULE_STRATEGY: normal
stage: build
before_script:
- apt update && apt -y install make autoconf
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
script:
- cd port/linux
- make TCP=1 IPV4=1 CREATE=1 MNT=1 CLOUD=1 DEBUG=0 V6DNS=0
Android_build:
variables:
GIT_SUBMODULE_STRATEGY: normal
stage: build
image: gitlab.iotivity.org:5050/iotivity/iotivity-lite
script:
- cd port/android
- make DYNAMIC=1 TCP=1 IPV4=1 SECURE=1 PKI=1 CLOUD=1 JAVA=1 DEBUG=0
retry:
max: 2
when: runner_system_failure
doxygen:
variables:
GIT_SUBMODULE_STRATEGY: none
stage: build
before_script:
- apt update && apt -y install doxygen
script:
- doxygen --version
- cd tools
- ./build_doc.sh