forked from iotivity/iotivity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
125 lines (123 loc) · 7.43 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
---
image: gcc
build_Linux:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux
build_linux_unsecured_with_rd:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_unsecured_with_rd
.build_linux_unsecured:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_unsecured
build_linux_secured:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_secured
build_linux_secured_with_rd:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_secured_with_rd
build_linux_unsecured_with_mq:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_unsecured_with_mq
.build_linux_unsecured_with_tcp:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_unsecured_with_tcp
build_linux_secured_with_tcp:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_secured_with_tcp
build_linux_full:
stage: build
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath
- set -o pipefail
- export VERBOSE=false
- export CCACHE_DISABLE=false
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh linux_full
.Android_build:
stage: build
image: openjdk:8-jdk
before_script:
- apt update && apt -y install build-essential git scons libtool autoconf valgrind doxygen wget unzip cmake libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libexpat1-dev libglib2.0-dev libsqlite3-dev libcurl4-gnutls-dev chrpath lib32stdc++6 lib32z1 swig
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
- unzip -d android-sdk-linux android-sdk.zip
- echo y | android-sdk-linux/tools/bin/sdkmanager "ndk-bundle" >/dev/null
- echo y | android-sdk-linux/tools/bin/sdkmanager "platforms;android-28" >/dev/null
- echo y | android-sdk-linux/tools/bin/sdkmanager "platform-tools" >/dev/null
- echo y | android-sdk-linux/tools/bin/sdkmanager "build-tools;28.0.2" >/dev/null
- export ANDROID_HOME=$PWD/android-sdk-linux
- export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
# temporarily disable checking for EPIPE error and use yes to accept all licenses
- set +o pipefail
- yes | android-sdk-linux/tools/bin/sdkmanager --licenses
- set -o pipefail
- ./android-sdk-linux/ndk-bundle/build/tools/make_standalone_toolchain.py --arch arm --api 23 --install-dir ~/android-arm-23
- git clone https://github.com/intel/tinycbor.git extlibs/tinycbor/tinycbor -b v0.5.1
- git clone https://github.com/ARMmbed/mbedtls.git extlibs/mbedtls/mbedtls -b mbedtls-2.4.2
script:
- ./auto_build.sh android_secured