Commit 98db9291 authored by Samir Halilcevic's avatar Samir Halilcevic

Remove parallel

parent cad0c29c
#! /bin/bash
SCRIPT_DIR=$(dirname "$0")
BUILD_DIR=$1
AUTOBAHN_CONFIG=$(cat << EOF
cat > test_config.json << EOF
{
"options": {},
"outdir": "./reports/",
......@@ -17,10 +19,9 @@ AUTOBAHN_CONFIG=$(cat << EOF
"exclude-agent-cases": {}
}
EOF
)
"${BUILD_DIR}"/libcaf_net/caf-net-autobahn-driver -p 7788 >/dev/null &
wstest -m fuzzingclient -s /config/fuzzingclient.json
wstest -m fuzzingclient -s test_config.json
kill %1
......@@ -167,47 +167,41 @@ pipeline {
getSources(config)
}
}
stage('Build and Test') {
parallel {
stage('Build') {
steps {
buildParallel(config)
}
}
stage('Autobahn Testsuite') {
steps {
node(docker) {
script {
def baseDir = pwd()
def sourceDir = "$baseDir/sources"
def buildDir = "$baseDir/build"
def installDir = "$baseDir/autobahn"
def initFile = "$baseDir/init.cmake"
def init = new StringBuilder()
writeFile([
file: 'init.cmake',
text: """
set(CAF_ENABLE_EXAMPLES OFF CACHE BOOL "")
set(CAF_ENABLE_RUNTIME_CHECKS ON CACHE BOOL "")
set(CAF_ENABLE_SHARED_LIBS OFF CACHE BOOL "")
set(CAF_ENABLE_IO_MODULE OFF CACHE BOOL "")
set(CAF_ENABLE_IO_TOOLS OFF CACHE BOOL "")
set(CAF_BUILD_INFO_FILE_PATH "$baseDir/build-autobahn.info" CACHE FILEPATH "")
set(CMAKE_INSTALL_PREFIX "$installDir" CACHE PATH "")
set(CMAKE_BUILD_TYPE "release" CACHE STRING "")
"""
])
def image = docker.build('autobahn-testsuite', "sources/.ci/autobahn-testsuite")
image.inside("--cap-add SYS_PTRACE") {
sh "./sources/.ci/run.sh build '$initFile' '$sourceDir' '$buildDir'"
warnError('Unit Tests failed!') {
sh "./sources/.ci/autobahn-testsuite/run.sh"
writeFile file: "build-${index}.success", text: "success\n"
}
}
stage('Build') {
steps {
buildParallel(config)
}
}
stage('Autobahn Testsuite') {
steps {
script {
def baseDir = pwd()
def sourceDir = "$baseDir/sources"
def buildDir = "$baseDir/build"
def installDir = "$baseDir/autobahn"
def initFile = "$baseDir/init.cmake"
def init = new StringBuilder()
writeFile([
file: 'init.cmake',
text: """
set(CAF_ENABLE_EXAMPLES OFF CACHE BOOL "")
set(CAF_ENABLE_RUNTIME_CHECKS ON CACHE BOOL "")
set(CAF_ENABLE_SHARED_LIBS OFF CACHE BOOL "")
set(CAF_ENABLE_IO_MODULE OFF CACHE BOOL "")
set(CAF_ENABLE_IO_TOOLS OFF CACHE BOOL "")
set(CAF_BUILD_INFO_FILE_PATH "$baseDir/build-autobahn.info" CACHE FILEPATH "")
set(CMAKE_INSTALL_PREFIX "$installDir" CACHE PATH "")
set(CMAKE_BUILD_TYPE "release" CACHE STRING "")
"""
])
def image = docker.build('autobahn-testsuite', "sources/.ci/autobahn-testsuite")
image.inside("--cap-add SYS_PTRACE") {
sh "./sources/.ci/run.sh build '$initFile' '$sourceDir' '$buildDir'"
warnError('Unit Tests failed!') {
sh "./sources/.ci/autobahn-testsuite/run.sh"
writeFile file: "build-autobahn.success", text: "success\n"
}
}
}
}
}
}
......
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