提交 6964807f 编写于 作者: J Jonathan Giszczak

Remove obsolete Jenkins and Docker files.

上级 13cd39de
pipeline {
agent none
stages {
stage('Build') {
parallel {
stage('Ubuntu') {
agent { label 'Ubuntu' }
steps {
sh '''
. $HOME/.bash_profile
echo 1 | ./eosio_build.sh
'''
stash includes: 'build/**/*', name: 'buildUbuntu'
}
}
stage('MacOS') {
agent { label 'MacOS' }
steps {
sh '''
. $HOME/.bash_profile
echo 1 | ./eosio_build.sh
'''
stash includes: 'build/**/*', name: 'buildMacOS'
}
}
stage('Fedora') {
agent { label 'Fedora' }
steps {
sh '''
. $HOME/.bash_profile
echo 1 | ./eosio_build.sh
'''
stash includes: 'build/**/*', name: 'buildFedora'
}
}
}
}
stage('Tests') {
parallel {
stage('Ubuntu') {
agent { label 'Ubuntu' }
steps {
unstash 'buildUbuntu'
sh '''
. $HOME/.bash_profile
if ! /usr/bin/pgrep mongod &>/dev/null; then
/usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
fi
cd build
printf "Waiting for testing to be available..."
while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
echo "OK!"
ctest --output-on-failure
'''
}
post {
failure {
archiveArtifacts 'build/genesis.json'
archiveArtifacts 'build/etc/eosio/node_00/config.ini'
archiveArtifacts 'build/var/lib/node_00/stderr.txt'
archiveArtifacts 'build/test_walletd_output.log'
}
}
}
stage('MacOS') {
agent { label 'MacOS' }
steps {
unstash 'buildMacOS'
sh '''
. $HOME/.bash_profile
if ! /usr/bin/pgrep mongod &>/dev/null; then
/usr/local/bin/mongod -f /usr/local/etc/mongod.conf > /dev/null 2>&1 &
fi
cd build
ctest --output-on-failure
'''
}
post {
failure {
archiveArtifacts 'build/genesis.json'
archiveArtifacts 'build/etc/eosio/node_00/config.ini'
archiveArtifacts 'build/var/lib/node_00/stderr.txt'
archiveArtifacts 'build/test_walletd_output.log'
}
}
}
stage('Fedora') {
agent { label 'Fedora' }
steps {
unstash 'buildFedora'
sh '''
. $HOME/.bash_profile
if ! /usr/bin/pgrep mongod &>/dev/null; then
/usr/bin/mongod -f /etc/mongod.conf > /dev/null 2>&1 &
fi
cd build
printf "Waiting for testing to be available..."
while /usr/bin/pgrep -x ctest > /dev/null; do sleep 1; done
echo "OK!"
ctest --output-on-failure
'''
}
post {
failure {
archiveArtifacts 'build/genesis.json'
archiveArtifacts 'build/etc/eosio/node_00/config.ini'
archiveArtifacts 'build/var/lib/node_00/stderr.txt'
archiveArtifacts 'build/test_walletd_output.log'
}
}
}
}
}
}
post {
always {
node('Ubuntu') {
cleanWs()
}
node('MacOS') {
cleanWs()
}
node('Fedora') {
cleanWs()
}
}
}
}
machine:
services:
- docker
dependencies:
override:
- cd ~/eos && docker build -t eosio/eos -f Docker/Dockerfile .
test:
pre:
- sleep 5
override:
- docker run eosio/eos
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册