Commit 25c10b61 authored by Mickaël Turnel's avatar Mickaël Turnel

Enable tests for tunnel

parent 9d2632d8
......@@ -127,7 +127,7 @@ test-mediastreamer:
TESTER_BIN: "mediastreamer2_tester"
PULSEAUDIO: "pulseaudio -D -L module-virtual-source --exit-idle-time=-1"
LOG_PATTERN: "logMediastreamerAllPar"
PATH_TO_TESTER: "/builds/BC/public/linphone-sdk/build-desktop/linphone-sdk/desktop/bin"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/linphone-sdk/desktop/bin"
.test-liblinphone-centos7:
......@@ -140,22 +140,20 @@ test-mediastreamer:
XVFB: "Xvfb :99"
EXPORT_DISPLAY: "export DISPLAY=:99"
LOG_PATTERN: "logLiblinphoneAllParThIpv6"
PATH_TO_TESTER: "/builds/BC/public/linphone-sdk/build-desktop/linphone-sdk/desktop/bin"
ADDITIONNAL_OPTIONS: "--dns-hosts /builds/BC/public/linphone-sdk/linphone/tester/tester_hosts --show-account-manager-logs"
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"
test-liblinphone:
extends: .test-liblinphone-centos7
test-liblinphone-mr:
variables:
DUMMY_TRUE: "true"
extends: .test-liblinphone-centos7
only:
refs:
- branches
- tags
variables:
- $DUMMY_TRUE
- $ENABLE_TESTS_IN_MR
except:
- schedules
......@@ -169,11 +167,11 @@ test-liblinphone-mr:
# - ls -la .
# - pwd
# - ls -la ./lime
# - cd /builds/BC/public/linphone-sdk/lime/tester/server/nodejs
# - cd ${CI_PROJECT_DIR}/lime/tester/server/nodejs
# #installing here since the tester cannot find globally installed packages
# - npm install yargs sqlite3 rwlock
# - ./localServerStart.sh & #How do we stop it properly ????
# - cd /builds/BC/public/linphone-sdk
# - cd ${CI_PROJECT_DIR}
# - cd build-desktop/WORK/desktop/Build/
# - ls -la
# - cd lime
......@@ -181,7 +179,7 @@ test-liblinphone-mr:
# - cd tester
# - ls -la
#
# #path to source dir /builds/BC/public/linphone-sdk/lime
# #path to source dir ${CI_PROJECT_DIR}/lime
# - ./lime_tester --verbose --xml-file limetest --resource-dir ../../../../../../lime/tester
# #uploading the artifacts
# artifacts:
......
......@@ -36,6 +36,7 @@
.test:
stage: test
extends: .job-prepare
allow_failure: true
only:
variables:
......@@ -64,10 +65,10 @@
# searching for core files and if there are some, launch gdb on all of it
# "true ||" is used here to continue the script even if the find fails
- if [[ -n $(find . -type f -name "core*") ]]; then find . -type f -name "core*" | xargs -L1 gdb $TESTER_BIN; fi || true
- sudo mkdir /builds/BC/public/linphone-sdk/results
- sudo chmod 777 /builds/BC/public/linphone-sdk/results
- cp -r BCUnitAutomated* /builds/BC/public/linphone-sdk/results
- cp -r $LOG_PATTERN* /builds/BC/public/linphone-sdk/results
- sudo mkdir ${CI_PROJECT_DIR}/results
- sudo chmod 777 ${CI_PROJECT_DIR}/results
- cp -r BCUnitAutomated* ${CI_PROJECT_DIR}/results
- cp -r $LOG_PATTERN* ${CI_PROJECT_DIR}/results
artifacts:
paths:
......@@ -85,7 +86,7 @@
variables:
TESTER_BIN: "bctoolbox_tester"
LOG_PATTERN: "logBctoolboxAllPar"
PATH_TO_TESTER: "/builds/BC/public/linphone-sdk/build-desktop/WORK/desktop/Build/bctoolbox/tester"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/WORK/desktop/Build/bctoolbox/tester"
.test-bellesip:
extends: .test
......@@ -94,7 +95,7 @@
variables:
TESTER_BIN: "belle_sip_tester"
LOG_PATTERN: "logBellesipAllPar"
PATH_TO_TESTER: "/builds/BC/public/linphone-sdk/build-desktop/linphone-sdk/desktop/bin"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/linphone-sdk/desktop/bin"
RESOURCES_DIR: "--resource-dir ../share/"
......@@ -105,7 +106,7 @@
variables:
TESTER_BIN: "belr_tester"
LOG_PATTERN: "logBelrAllPar"
PATH_TO_TESTER: "/builds/BC/public/linphone-sdk/build-desktop/linphone-sdk/desktop/bin"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/linphone-sdk/desktop/bin"
RESOURCES_DIR: "--resource-dir ../share/belr-tester"
.test-belcard:
......@@ -115,7 +116,7 @@
variables:
TESTER_BIN: "belcard_tester"
LOG_PATTERN: "logBelcardAllPar"
PATH_TO_TESTER: "/builds/BC/public/linphone-sdk/build-desktop/linphone-sdk/desktop/bin"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/linphone-sdk/desktop/bin"
.test-bzrtp:
extends: .test
......@@ -124,7 +125,7 @@
variables:
TESTER_BIN: "bzrtpTest"
LOG_PATTERN: "logBzrtpAllPar"
PATH_TO_TESTER: "/builds/BC/public/linphone-sdk/build-desktop/WORK/desktop/Build/bzrtp/test"
PATH_TO_TESTER: "${CI_PROJECT_DIR}/build-desktop/WORK/desktop/Build/bzrtp/test"
#We must tell it that the ressources it wants are in its own folder
#different behaviour from other testers
RESOURCES_DIR: "--resource-dir ."
#################################################
# Windows
#################################################
job-windows-vs2017-package:
stage: package
tags: [ "windows" ]
dependencies:
- job-windows-vs2017-scheduled
only:
variables:
- $NIGHTLY_MASTER
- $PACKAGE_RUN_WINDOWS
script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
- cd build-desktop
- chdir > chdir_sdk.temp
- set /p OUTPUT_SDK_BUILD=<chdir_sdk.temp
- cd ..\cmake\Windows\wrapper\
- chdir > chdir_wrapper.temp
- set /p OUTPUT_WRAPPER_BUILD=<chdir_wrapper.temp
- msbuild -t:restore CsWrapper.csproj
- msbuild CsWrapper.csproj /p:MDILCompile=true /p:Platform="x86" /t:build /p:Configuration=Release /p:OutputSdkBuild=%OUTPUT_SDK_BUILD%
- cd ..\nuget
- git describe > describe.temp
- set /p DESCRIBE=<describe.temp
- msbuild NuGetLinphoneSDK.vcxproj /p:VersionNumber=%DESCRIBE% /p:OutputSdkBuild=%OUTPUT_SDK_BUILD% /p:OutputWrapperBuild=%OUTPUT_WRAPPER_BUILD%
artifacts:
paths:
- cmake\Windows\nuget\*.nupkg
when: always
expire_in: 1 week
......@@ -83,32 +83,3 @@ job-windows-vs2017-novideo:
variables:
CMAKE_OPTIONS: -DENABLE_LIME_X3DH=NO -DENABLE_VIDEO=NO
job-windows-vs2017-package:
stage: package
tags: [ "windows" ]
dependencies:
- job-windows-vs2017-scheduled
only:
variables:
- $NIGHTLY_MASTER
- $PACKAGE_RUN_WINDOWS
script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
- cd build-desktop
- chdir > chdir_sdk.temp
- set /p OUTPUT_SDK_BUILD=<chdir_sdk.temp
- cd ..\cmake\Windows\wrapper\
- chdir > chdir_wrapper.temp
- set /p OUTPUT_WRAPPER_BUILD=<chdir_wrapper.temp
- msbuild -t:restore CsWrapper.csproj
- msbuild CsWrapper.csproj /p:MDILCompile=true /p:Platform="x86" /t:build /p:Configuration=Release /p:OutputSdkBuild=%OUTPUT_SDK_BUILD%
- cd ..\nuget
- git describe > describe.temp
- set /p DESCRIBE=<describe.temp
- msbuild NuGetLinphoneSDK.vcxproj /p:VersionNumber=%DESCRIBE% /p:OutputSdkBuild=%OUTPUT_SDK_BUILD% /p:OutputWrapperBuild=%OUTPUT_WRAPPER_BUILD%
artifacts:
paths:
- cmake\Windows\nuget\*.nupkg
when: always
expire_in: 1 week
......@@ -6,7 +6,7 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
MAKEFILE_JOBS: 5
CCACHE_SIZE: 2G
CMAKE_OPTIONS: -DENABLE_TUNNEL=YES
CMAKE_OPTIONS: -DENABLE_LIME_X3DH=YES -DENABLE_TUNNEL=YES
#################################################
......@@ -26,13 +26,13 @@ include:
- '.gitlab-ci-files/job-android.yml'
- '.gitlab-ci-files/job-ios.yml'
- '.gitlab-ci-files/job-linux-desktop.yml'
# - '.gitlab-ci-files/job-linux-desktop-archlinux-latest.yml'
# - '.gitlab-ci-files/job-linux-desktop-centos7.yml'
# - '.gitlab-ci-files/job-linux-desktop-debian8.yml'
# - '.gitlab-ci-files/job-linux-desktop-debian9.yml'
- '.gitlab-ci-files/job-linux-desktop-archlinux-latest.yml'
- '.gitlab-ci-files/job-linux-desktop-centos7.yml'
- '.gitlab-ci-files/job-linux-desktop-debian8.yml'
- '.gitlab-ci-files/job-linux-desktop-debian9.yml'
- '.gitlab-ci-files/job-linux-desktop-ubuntu-rolling.yml'
- '.gitlab-ci-files/job-macosx.yml'
# - '.gitlab-ci-files/job-windows.yml'
- '.gitlab-ci-files/job-windows.yml'
stages:
- build
......
......@@ -29,6 +29,7 @@ include:
- '.gitlab-ci-files/job-linux-desktop-ubuntu-rolling.yml'
- '.gitlab-ci-files/job-macosx.yml'
- '.gitlab-ci-files/job-windows.yml'
- '.gitlab-ci-files/job-packages.yml'
- '.gitlab-ci-files/job-uploads.yml'
stages:
......
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