Commit 935d0079 authored by Peio Rigaux's avatar Peio Rigaux

Moving all linux tests runners on nuc tester (bc-nuc) to avoid overhead on...

Moving all linux tests runners on nuc tester (bc-nuc) to avoid overhead on shuttle-linux. Added verbose output on variables for easier debugging. Changed mr tester job name to explicitely name concerned distrib.
parent 20082848
......@@ -8,7 +8,12 @@
- ccache -s
- mkdir -p build-ios
- cd build-ios
- echo $CMAKE_GENERATOR
- echo $IOS_ARCHS
- echo $CMAKE_OPTIONS
- cmake .. -G "$CMAKE_GENERATOR" -DLINPHONESDK_PLATFORM=IOS -DLINPHONESDK_IOS_ARCHS="$IOS_ARCHS" $CMAKE_OPTIONS
- echo $ADDITIONAL_BUILD_OPTIONS
- cmake --build . --target sdk -- $ADDITIONAL_BUILD_OPTIONS
- ccache -s
......@@ -78,6 +83,7 @@ job-ios-xcode:
script:
- mkdir -p build-ios
- cd build-ios
- echo $CMAKE_OPTIONS
- cmake .. -G Xcode -DLINPHONESDK_PLATFORM=IOS -DLINPHONESDK_IOS_ARCHS="arm64, armv7, x86_64" -DLINPHONESDK_IOS_BASE_URL=$IOS_SNAPSHOTS_URL $CMAKE_OPTIONS
- cmake --build . --target sdk -- -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=`sysctl -n hw.ncpu`
......
......@@ -91,28 +91,34 @@ test-bctoolbox-arch:
extends: .test-bctoolbox
dependencies:
- job-archlinux-latest-ninja-clang
tags: [ "docker-archlinux-latest" ]
tags: [ "docker-test-archlinux-latest-nuc" ]
test-bellesip-arch:
extends: .test-bellesip
dependencies:
- job-archlinux-latest-ninja-clang
tags: [ "docker-archlinux-latest" ]
tags: [ "docker-test-archlinux-latest-nuc" ]
test-belr-arch:
extends: .test-belr
dependencies:
- job-archlinux-latest-ninja-clang
tags: [ "docker-archlinux-latest" ]
tags: [ "docker-test-archlinux-latest-nuc" ]
test-belcard-arch:
extends: .test-belcard
dependencies:
- job-archlinux-latest-ninja-clang
tags: [ "docker-archlinux-latest" ]
tags: [ "docker-test-archlinux-latest-nuc" ]
test-bzrtp-arch:
extends: .test-bzrtp
dependencies:
- job-archlinux-latest-ninja-clang
tags: [ "docker-archlinux-latest" ]
\ No newline at end of file
tags: [ "docker-test-archlinux-latest-nuc" ]
test-liblinphone-arch:
tags: [ "docker-test-archlinux-liblinphone-nuc" ]
extends: .test-liblinphone
dependencies:
- job-archlinux-latest-ninja-clang
\ No newline at end of file
......@@ -92,34 +92,34 @@ test-bctoolbox-centos7:
extends: .test-bctoolbox
dependencies:
- job-centos7-ninja-gcc
tags: [ "docker-test-centos7" ]
tags: [ "docker-test-centos7-nuc" ]
test-bellesip-centos7:
extends: .test-bellesip
dependencies:
- job-centos7-ninja-gcc
tags: [ "docker-test-centos7" ]
tags: [ "docker-test-centos7-nuc" ]
test-belr-centos7:
extends: .test-belr
dependencies:
- job-centos7-ninja-gcc
tags: [ "docker-test-centos7" ]
tags: [ "docker-test-centos7-nuc" ]
test-belcard-centos7:
extends: .test-belcard
dependencies:
- job-centos7-ninja-gcc
tags: [ "docker-test-centos7" ]
tags: [ "docker-test-centos7-nuc" ]
test-bzrtp-centos7:
extends: .test-bzrtp
dependencies:
- job-centos7-ninja-gcc
tags: [ "docker-test-centos7" ]
tags: [ "docker-test-centos7-nuc" ]
test-mediastreamer:
tags: [ "docker-test-centos7-mediastreamer" ]
test-mediastreamer-centos7:
tags: [ "docker-test-centos7-liblinphone-nuc" ]
extends: .test
dependencies:
- job-centos7-ninja-gcc
......@@ -128,27 +128,19 @@ test-mediastreamer:
PULSEAUDIO: "pulseaudio -D -L module-virtual-source --exit-idle-time=-1"
LOG_PATTERN: "logMediastreamerAllPar"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/linphone-sdk/desktop/bin"
SET_CAP_SYS_NICE_LIN_MS: "sudo setcap cap_sys_nice+ep ./${TESTER_BIN}"
SET_CAP_SYS_NICE_NET_ADMIN_MS: "sudo setcap cap_net_admin,cap_sys_nice+ep ./${TESTER_BIN}"
.test-liblinphone-centos7:
tags: [ "docker-test-centos7-liblinphone" ]
extends: .test
tags: [ "docker-test-centos7-liblinphone-nuc" ]
extends: .test-liblinphone
dependencies:
- job-centos7-ninja-gcc
variables:
TESTER_BIN: "liblinphone_tester"
XVFB: "Xvfb :99"
EXPORT_DISPLAY: "export DISPLAY=:99"
LOG_PATTERN: "logLiblinphoneAllParThIpv6"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/linphone-sdk/desktop/bin"
ADDITIONNAL_OPTIONS: "--dns-hosts ${CI_PROJECT_DIR}/linphone/tester/tester_hosts --show-account-manager-logs"
SET_CAP_SYS_NICE_LIN_MS: "sudo setcap cap_sys_nice+ep ./${TESTER_BIN}"
test-liblinphone:
test-liblinphone-centos7-schedule:
extends: .test-liblinphone-centos7
test-liblinphone-mr:
test-liblinphone-centos7-mr:
extends: .test-liblinphone-centos7
only:
refs:
......
......@@ -97,22 +97,28 @@ test-bellesip-debian8:
extends: .test-bellesip
dependencies:
- job-debian8-ninja-clang
tags: [ "docker-test-debian8" ]
tags: [ "docker-test-debian8-nuc" ]
test-belr-debian8:
extends: .test-belr
dependencies:
- job-debian8-ninja-clang
tags: [ "docker-test-debian8" ]
tags: [ "docker-test-debian8-nuc" ]
test-belcard-debian8:
extends: .test-belcard
dependencies:
- job-debian8-ninja-clang
tags: [ "docker-test-debian8" ]
tags: [ "docker-test-debian8-nuc" ]
test-bzrtp-debian8:
extends: .test-bzrtp
dependencies:
- job-debian8-ninja-clang
tags: [ "docker-test-debian8" ]
\ No newline at end of file
tags: [ "docker-test-debian8-nuc" ]
test-liblinphone-debian8:
tags: [ "docker-test-debian8-liblinphone-nuc" ]
extends: .test-liblinphone
dependencies:
- job-debian8-ninja-clang
\ No newline at end of file
......@@ -98,22 +98,28 @@ test-bellesip-debian9:
extends: .test-bellesip
dependencies:
- job-debian9-ninja-gcc
tags: [ "docker-test-debian9" ]
tags: [ "docker-test-debian9-nuc" ]
test-belr-debian9:
extends: .test-belr
dependencies:
- job-debian9-ninja-gcc
tags: [ "docker-test-debian9" ]
tags: [ "docker-test-debian9-nuc" ]
test-belcard-debian9:
extends: .test-belcard
dependencies:
- job-debian9-ninja-gcc
tags: [ "docker-test-debian9" ]
tags: [ "docker-test-debian9-nuc" ]
test-bzrtp-debian9:
extends: .test-bzrtp
dependencies:
- job-debian9-ninja-gcc
tags: [ "docker-test-debian9" ]
\ No newline at end of file
tags: [ "docker-test-debian9-nuc" ]
test-liblinphone-debian9:
tags: [ "docker-test-debian9-liblinphone-nuc" ]
extends: .test-liblinphone
dependencies:
- job-debian9-ninja-gcc
\ No newline at end of file
......@@ -90,28 +90,34 @@ test-bctoolbox-ubuntu:
extends: .test-bctoolbox
dependencies:
- job-ubuntu-rolling-ninja-clang
tags: [ "docker-ubuntu-rolling" ]
tags: [ "docker-test-ubuntu-rolling-nuc" ]
test-bellesip-ubuntu:
extends: .test-bellesip
dependencies:
- job-ubuntu-rolling-ninja-clang
tags: [ "docker-ubuntu-rolling" ]
tags: [ "docker-test-ubuntu-rolling-nuc" ]
test-belr-ubuntu:
extends: .test-belr
dependencies:
- job-ubuntu-rolling-ninja-clang
tags: [ "docker-ubuntu-rolling" ]
tags: [ "docker-test-ubuntu-rolling-nuc" ]
test-belcard-ubuntu:
extends: .test-belcard
dependencies:
- job-ubuntu-rolling-ninja-clang
tags: [ "docker-ubuntu-rolling" ]
tags: [ "docker-test-ubuntu-rolling-nuc" ]
test-bzrtp-ubuntu:
extends: .test-bzrtp
dependencies:
- job-ubuntu-rolling-ninja-clang
tags: [ "docker-ubuntu-rolling" ]
\ No newline at end of file
tags: [ "docker-test-ubuntu-rolling-nuc" ]
test-liblinphone-ubuntu:
tags: [ "docker-test-ubuntu-rolling-liblinphone-nuc" ]
extends: .test-liblinphone
dependencies:
- job-ubuntu-rolling-ninja-clang
\ No newline at end of file
......@@ -13,7 +13,11 @@
- mkdir -p build-desktop
- cd build-desktop
- cmake .. -G "$CMAKE_GENERATOR" -DLINPHONESDK_PLATFORM=Desktop $DEFAULT_LINUX_CMAKE_OPTIONS $CMAKE_OPTIONS
- echo $CMAKE_GENERATOR
- echo $DEFAULT_LINUX_CMAKE_OPTIONS
- echo $CMAKE_OPTIONS
- cmake --build . --target sdk -- $ADDITIONAL_BUILD_OPTIONS
- echo $ADDITIONAL_BUILD_OPTIONS
artifacts:
paths:
- build-desktop/linphone-sdk/desktop/bin/*
......@@ -48,26 +52,39 @@
script:
- cd $PATH_TO_TESTER
- echo $PATH_TO_TESTER
#pulseaudio launch for mediastreamer
- $PULSEAUDIO
- echo $PULSEAUDIO
#X emulation for linphone
- $XVFB &
- echo $XVFB
- $EXPORT_DISPLAY
- echo $EXPORT_DISPLAY
- ls -la
#enabling SYS_NICE cap for ms2 and liblinphone testers
- echo $SET_CAP_SYS_NICE_LIN_MS
- echo $TESTER_BIN
- echo ${TESTER_BIN}
- $SET_CAP_SYS_NICE_LIN_MS || true
- echo $SET_CAP_SYS_NICE_LIN
- $SET_CAP_SYS_NICE_LIN || true
- echo $SET_CAP_SYS_NICE_NET_ADMIN_MS
- $SET_CAP_SYS_NICE_NET_ADMIN_MS || true
#checking if the tester has SYS_NICE cap
- getcap ./$TESTER_BIN || true
- echo $RESOURCE_DIR
- echo $ADDITIONNAL_OPTIONS
- echo $LOG_PATTERN.txt
- ./$TESTER_BIN --verbose --parallel $RESOURCE_DIR $ADDITIONNAL_OPTIONS --log-file $LOG_PATTERN.txt
after_script:
- pwd
- cd $PATH_TO_TESTER
......@@ -173,3 +190,17 @@
#We must tell it that the ressources it wants are in its own folder
#different behaviour from other testers
RESOURCES_DIR: "--resource-dir ."
.test-liblinphone:
extends: .test
dependencies:
- .build-sdk
variables:
TESTER_BIN: "liblinphone_tester"
XVFB: "Xvfb :99"
PULSEAUDIO: ""
EXPORT_DISPLAY: "export DISPLAY=:99"
LOG_PATTERN: "logLiblinphoneAllParThIpv6"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/linphone-sdk/desktop/bin"
ADDITIONNAL_OPTIONS: "--dns-hosts ${CI_PROJECT_DIR}/linphone/tester/tester_hosts --show-account-manager-logs"
SET_CAP_SYS_NICE_LIN: "sudo setcap cap_sys_nice+ep ./${TESTER_BIN}"
......@@ -21,6 +21,8 @@
##
- mkdir -p ccache
- echo "max_size = $CCACHE_SIZE" > ccache/ccache.conf
- echo $CCACHE_SIZE
- echo ${PWD}/ccache
- export CCACHE_BASEDIR=${PWD}
- export CCACHE_DIR=${PWD}/ccache
- ccache -s
......
......@@ -8,6 +8,9 @@
- ccache -s
- mkdir -p build-desktop
- cd build-desktop
- echo $CMAKE_GENERATOR
- echo $DEFAULT_CMAKE_OPTIONS
- echo $CMAKE_OPTIONS
- cmake .. -G "$CMAKE_GENERATOR" -DLINPHONESDK_PLATFORM=Desktop -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 $DEFAULT_CMAKE_OPTIONS $CMAKE_OPTIONS
- cmake --build . --target sdk -- $ADDITIONAL_BUILD_OPTIONS
- ccache -s
......
......@@ -64,9 +64,14 @@ job-android-upload:
- git config --global user.name "Gitlab"
- mkdir -p build
- cd build
- echo $CMAKE_GENERATOR
- echo $DEFAULT_LINUX_CMAKE_OPTION
- echo $CMAKE_OPTIONS
- cmake .. -G "$CMAKE_GENERATOR" -DLINPHONESDK_PLATFORM=Android -DLINPHONESDK_ANDROID_ARCHS="arm64, armv7, x86_64, x86" $DEFAULT_LINUX_CMAKE_OPTIONS $CMAKE_OPTIONS
- echo $ADDITIONAL_BUILD_OPTIONS
- cmake --build . --target sdk -- $ADDITIONAL_BUILD_OPTIONS
- rsync -ave ssh --exclude "*.aar" --exclude "*.jar" $ANDROID_MAVEN_URL maven_repository
- echo $GRADLE_OPTIONS
- ../cmake/Android/gradlew publish $GRADLE_OPTIONS
- rsync -ave ssh ./maven_repository/* $ANDROID_MAVEN_URL
......@@ -141,8 +146,8 @@ job-test-report-upload:
tags: [ "deploy" ]
dependencies:
- test-liblinphone
- test-liblinphone-mr
- test-liblinphone-centos7-schedule
- test-liblinphone-centos7-mr
script:
#getting the version number for each submodule and writing it in environment.properties file
......@@ -179,6 +184,8 @@ job-test-report-upload:
- echo LINPHONE_VERSION=$LINPHONE_VERSION | tee -a environment.properties
- echo MS2_VERSION=$MS2_VERSION | tee -a environment.properties
- cat environment.properties
#TODO errors management
......
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