Skip to content

Commit

Permalink
Merge pull request EOSIO#1810 from EOSIO/mongo-tests-jenkins
Browse files Browse the repository at this point in the history
Mongo tests jenkins
  • Loading branch information
bytemaster authored Mar 24, 2018
2 parents a7f2601 + 906a0ee commit 9384262
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ pipeline {
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
Expand All @@ -65,10 +68,10 @@ pipeline {
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
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
'''
}
Expand All @@ -87,6 +90,9 @@ pipeline {
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
Expand Down

0 comments on commit 9384262

Please sign in to comment.