mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Cypress fixes
This commit is contained in:
parent
7fd825b76b
commit
5be46b4b20
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -91,9 +91,9 @@ pipeline {
|
|||||||
|
|
||||||
// Run tests
|
// Run tests
|
||||||
sh 'rm -rf test/results'
|
sh 'rm -rf test/results'
|
||||||
sh 'docker-compose up cypress'
|
sh 'docker-compose up cypress-sqlite'
|
||||||
// Get results
|
// Get results
|
||||||
sh 'docker cp -L "$(docker-compose ps -q cypress):/results" test/'
|
sh 'docker cp -L "$(docker-compose ps -q cypress-sqlite):/results" test/'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
@ -101,7 +101,7 @@ pipeline {
|
|||||||
sh 'mkdir -p debug'
|
sh 'mkdir -p debug'
|
||||||
sh 'docker-compose logs fullstack-sqlite | gzip > debug/docker_fullstack_sqlite.log.gz'
|
sh 'docker-compose logs fullstack-sqlite | gzip > debug/docker_fullstack_sqlite.log.gz'
|
||||||
sh 'docker-compose logs db | gzip > debug/docker_db.log.gz'
|
sh 'docker-compose logs db | gzip > debug/docker_db.log.gz'
|
||||||
sh 'docker-compose down'
|
sh 'docker-compose down --rmi all --remove-orphans --volumes -t 30'
|
||||||
// Cypress videos and screenshot artifacts
|
// Cypress videos and screenshot artifacts
|
||||||
dir(path: 'test/results') {
|
dir(path: 'test/results') {
|
||||||
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml'
|
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml'
|
||||||
@ -118,9 +118,9 @@ pipeline {
|
|||||||
|
|
||||||
// Run tests
|
// Run tests
|
||||||
sh 'rm -rf test/results'
|
sh 'rm -rf test/results'
|
||||||
sh 'docker-compose up cypress'
|
sh 'docker-compose up cypress-mysql'
|
||||||
// Get results
|
// Get results
|
||||||
sh 'docker cp -L "$(docker-compose ps -q cypress):/results" test/'
|
sh 'docker cp -L "$(docker-compose ps -q cypress-mysql):/results" test/'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
@ -128,7 +128,7 @@ pipeline {
|
|||||||
sh 'mkdir -p debug'
|
sh 'mkdir -p debug'
|
||||||
sh 'docker-compose logs fullstack-mysql | gzip > debug/docker_fullstack_mysql.log.gz'
|
sh 'docker-compose logs fullstack-mysql | gzip > debug/docker_fullstack_mysql.log.gz'
|
||||||
sh 'docker-compose logs db | gzip > debug/docker_db.log.gz'
|
sh 'docker-compose logs db | gzip > debug/docker_db.log.gz'
|
||||||
sh 'docker-compose down'
|
sh 'docker-compose down --rmi all --remove-orphans --volumes -t 30'
|
||||||
// Cypress videos and screenshot artifacts
|
// Cypress videos and screenshot artifacts
|
||||||
dir(path: 'test/results') {
|
dir(path: 'test/results') {
|
||||||
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml'
|
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml'
|
||||||
|
@ -40,13 +40,24 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
|
|
||||||
cypress:
|
cypress-mysql:
|
||||||
image: ${IMAGE}-cypress:ci-${BUILD_NUMBER}
|
image: ${IMAGE}-cypress:ci-${BUILD_NUMBER}
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ../
|
||||||
dockerfile: test/cypress/Dockerfile
|
dockerfile: test/cypress/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
CYPRESS_baseUrl: "http://fullstack:81"
|
CYPRESS_baseUrl: "http://fullstack-mysql:81"
|
||||||
|
volumes:
|
||||||
|
- cypress-logs:/results
|
||||||
|
command: cypress run --browser chrome --config-file=${CYPRESS_CONFIG:-cypress/config/ci.json}
|
||||||
|
|
||||||
|
cypress-sqlite:
|
||||||
|
image: ${IMAGE}-cypress:ci-${BUILD_NUMBER}
|
||||||
|
build:
|
||||||
|
context: ../
|
||||||
|
dockerfile: test/cypress/Dockerfile
|
||||||
|
environment:
|
||||||
|
CYPRESS_baseUrl: "http://fullstack-sqlite:81"
|
||||||
volumes:
|
volumes:
|
||||||
- cypress-logs:/results
|
- cypress-logs:/results
|
||||||
command: cypress run --browser chrome --config-file=${CYPRESS_CONFIG:-cypress/config/ci.json}
|
command: cypress run --browser chrome --config-file=${CYPRESS_CONFIG:-cypress/config/ci.json}
|
||||||
|
Loading…
Reference in New Issue
Block a user