Skip to content

Commit eb2e2e0

Browse files
committed
Throw in a docker restart during testing phase
1 parent 9225d5d commit eb2e2e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Jenkinsfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,14 @@ pipeline {
9191
// Bring up a stack
9292
sh 'docker-compose up -d fullstack-sqlite'
9393
sh './scripts/wait-healthy $(docker-compose ps --all -q fullstack-sqlite) 120'
94+
// Stop and Start it, as this will test it's ability to restart with existing data
95+
sh 'docker-compose stop fullstack-sqlite'
96+
sh 'docker-compose start fullstack-sqlite'
97+
sh './scripts/wait-healthy $(docker-compose ps --all -q fullstack-sqlite) 120'
9498

9599
// Run tests
96100
sh 'rm -rf test/results'
97-
sh 'docker-compose up cypress-sqlite'
101+
sh 'docker-compose` cypress-sqlite'
98102
// Get results
99103
sh 'docker cp -L "$(docker-compose ps --all -q cypress-sqlite):/test/results" test/'
100104
}

0 commit comments

Comments
 (0)