Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Pipelines for complete GDB tests against all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham committed Apr 4, 2021
1 parent 5971822 commit 615bf7b
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 82 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pipeline {
steps {
container('cdt') {
// We use "checkout" instead of "git" here so we can specify relativeTargetDir and other options
checkout([$class: 'GitSCM', branches: [[name: '*/gdb-8.3-branch']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true], [$class: 'RelativeTargetDirectory', relativeTargetDir: 'binutils-gdb']], submoduleCfg: [], userRemoteConfigs: [[refspec: '+refs/heads/gdb-8.3-branch:refs/remotes/origin/gdb-8.3-branch', url: 'https://github.com/bminor/binutils-gdb.git']]])
checkout([$class: 'GitSCM', branches: [[name: '*/gdb-10-branch']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true], [$class: 'RelativeTargetDirectory', relativeTargetDir: 'binutils-gdb']], submoduleCfg: [], userRemoteConfigs: [[refspec: '+refs/heads/gdb-10-branch:refs/remotes/origin/gdb-10-branch', url: 'https://github.com/bminor/binutils-gdb.git']]])
}
}
}
Expand All @@ -32,9 +32,10 @@ pipeline {
sh """
mkdir gdb-build
cd gdb-build
../binutils-gdb/configure
${WORKSPACE}/binutils-gdb/configure --prefix=${WORKSPACE}/gdb-install
make -j1 V=1
cp gdb/gdb gdb/gdb.8.3
make -C gdb install MAKEINFO=true
make -C gdbserver install MAKEINFO=true
"""
}
}
Expand All @@ -48,8 +49,8 @@ pipeline {
sh "cd ${WORKSPACE}/eclipse-cdt && /usr/share/maven/bin/mvn \
clean verify -B -V \
-Pskip-tests-except-dsf-gdb \
-Dcdt.tests.dsf.gdb.versions=gdb.8.3 \
-Ddsf.gdb.tests.gdbPath=${WORKSPACE}/gdb-build/gdb \
-Dcdt.tests.dsf.gdb.versions=gdb,gdbserver \
-Ddsf.gdb.tests.gdbPath=${WORKSPACE}/gdb-install \
-DskipDoc=true \
-Ddsf.gdb.tests.timeout.multiplier=50 \
-Dindexer.timeout=300 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ pipeline {
sh """
mkdir gdb-build
cd gdb-build
../binutils-gdb/configure
${WORKSPACE}/binutils-gdb/configure --prefix=${WORKSPACE}/gdb-install
make -j1 V=1
cp gdb/gdb gdb/gdb.10.0
make -C gdb install MAKEINFO=true
make -C gdbserver install MAKEINFO=true
"""
}
}
Expand All @@ -48,8 +49,8 @@ pipeline {
sh "cd ${WORKSPACE}/eclipse-cdt && /usr/share/maven/bin/mvn \
clean verify -B -V \
-Pskip-tests-except-dsf-gdb \
-Dcdt.tests.dsf.gdb.versions=gdb.10.0 \
-Ddsf.gdb.tests.gdbPath=${WORKSPACE}/gdb-build/gdb \
-Dcdt.tests.dsf.gdb.versions=gdb,gdbserver \
-Ddsf.gdb.tests.gdbPath=${WORKSPACE}/gdb-install \
-DskipDoc=true \
-Ddsf.gdb.tests.timeout.multiplier=50 \
-Dindexer.timeout=300 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pipeline {
sh "/usr/share/maven/bin/mvn \
clean verify -B -V \
-Pskip-tests-except-dsf-gdb \
-Dcdt.tests.dsf.gdb.versions=gdbserver.8.3 \
-Dcdt.tests.dsf.gdb.versions=supported \
-DskipDoc=true \
-Ddsf.gdb.tests.timeout.multiplier=50 \
-Dindexer.timeout=300 \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
pipeline {
agent {
kubernetes {
yamlFile 'jenkins/pod-templates/cdt-full-pod-standard.yaml'
}
}
options {
timestamps()
disableConcurrentBuilds()
}
stages {
stage('Git Clone') {
steps {
container('cdt') {
git branch: 'master', url: 'https://git.eclipse.org/r/cdt/org.eclipse.cdt.git'
}
}
}
stage('Run build') {
steps {
container('cdt') {
timeout(activity: true, time: 20) {
withEnv(['MAVEN_OPTS=-Xmx768m -Xms768m']) {
sh "/usr/share/maven/bin/mvn \
clean verify -B -V \
-Pskip-tests-except-dsf-gdb \
-Dcdt.tests.dsf.gdb.versions=unsupported \
-DskipDoc=true \
-Ddsf.gdb.tests.timeout.multiplier=50 \
-Dindexer.timeout=300 \
-Dmaven.repo.local=/home/jenkins/.m2/repository \
--settings /home/jenkins/.m2/settings.xml \
"
}
}
}
}
}
}
post {
always {
container('cdt') {
junit '*/*/target/surefire-reports/*.xml'
}
}
}
}

0 comments on commit 615bf7b

Please sign in to comment.