Commit 7dfc2bc6 authored by Rami Alshafi's avatar Rami Alshafi

Merge branch 'CI-test' into 'master'

starting to experiment with IoTivity Clasic CI

See merge request !1
parents 5654c4f4 212b8a9b
Pipeline #656 passed with stage
in 719 minutes and 36 seconds
......@@ -2,11 +2,124 @@
image: gcc
build:
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
- scons -j 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
......@@ -115,7 +115,7 @@ def build_linux_secured(flag, scons_options):
print ("*********** Build for linux with Security *************")
build_options = {
'RELEASE': flag,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -125,7 +125,7 @@ def build_linux_unsecured(flag, scons_options):
build_options = {
'RELEASE': flag,
'SECURED': 0,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -136,7 +136,7 @@ def build_linux_secured_with_tcp(flag, scons_options):
'RELEASE': flag,
'WITH_TCP': 1,
'WITH_CLOUD': 1,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -148,7 +148,7 @@ def build_linux_unsecured_with_tcp(flag, scons_options):
'WITH_TCP': 1,
'TARGET_TRANSPORT': 'IP',
'SECURED': 0,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -160,7 +160,7 @@ def build_linux_unsecured_with_java(flag, scons_options):
'BUILD_JAVA': 1,
'TARGET_TRANSPORT': 'IP',
'SECURED': 0,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -172,7 +172,7 @@ def build_linux_secured_with_java(flag, scons_options):
'BUILD_JAVA': 1,
'TARGET_TRANSPORT': 'IP',
'SECURED': 1,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -183,7 +183,7 @@ def build_linux_unsecured_with_rm(flag, scons_options):
'ROUTING': 'GW',
'RELEASE': flag,
'SECURED': 0,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -194,7 +194,7 @@ def build_linux_full(flag, scons_options):
"""
print ("*********** Build for linux with full features *************")
build_options = {
'BUILD_JAVA': 1,
'BUILD_JAVA': 0,
'MULTIPLE_OWNER': 1,
'RELEASE': flag,
'SECURED': 1,
......@@ -203,7 +203,7 @@ def build_linux_full(flag, scons_options):
'WITH_RA': 1,
'WITH_RA_IBB': 1,
'WITH_TCP': 1,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -214,7 +214,7 @@ def build_linux_unsecured_with_rd(flag, scons_options):
'RELEASE': flag,
'RD_MODE': 'all',
'SECURED': 0,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -224,7 +224,7 @@ def build_linux_secured_with_rd(flag, scons_options):
build_options = {
'RELEASE': flag,
'RD_MODE': 'all',
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......@@ -235,7 +235,7 @@ def build_linux_unsecured_with_mq(flag, scons_options):
'RELEASE': flag,
'WITH_MQ': 'PUB,SUB,BROKER',
'SECURED': 0,
'ERROR_ON_WARN': 1,
'ERROR_ON_WARN': 0,
}
call_scons(build_options, scons_options)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment