mirror of https://github.com/OpenVidu/openvidu.git
Jenkinsfile updated (unit and integration tests apart)
parent
a08d92e745
commit
f587511248
|
@ -1,4 +1,4 @@
|
||||||
package io.openvidu.server.config;
|
package io.openvidu.server.test.unit;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ import java.nio.file.StandardCopyOption;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import io.openvidu.server.config.Dotenv;
|
||||||
import io.openvidu.server.config.Dotenv.DotenvFormatException;
|
import io.openvidu.server.config.Dotenv.DotenvFormatException;
|
||||||
|
|
||||||
class DotenvTest {
|
class DotenvTest {
|
|
@ -52,8 +52,11 @@ node('container') {
|
||||||
stage('OpenVidu TestApp build') {
|
stage('OpenVidu TestApp build') {
|
||||||
sh 'cd openvidu/openvidu-testapp && npm install --unsafe-perm && npm link openvidu-browser && npm link openvidu-node-client && export NG_CLI_ANALYTICS=ci && ./node_modules/@angular/cli/bin/ng build --prod'
|
sh 'cd openvidu/openvidu-testapp && npm install --unsafe-perm && npm link openvidu-browser && npm link openvidu-node-client && export NG_CLI_ANALYTICS=ci && ./node_modules/@angular/cli/bin/ng build --prod'
|
||||||
}
|
}
|
||||||
|
stage('OpenVidu Server unit tests') {
|
||||||
|
sh 'cd openvidu/openvidu-server && mvn --batch-mode -Dtest=io.openvidu.server.test.unit.*Test test'
|
||||||
|
}
|
||||||
stage('OpenVidu Server integration tests') {
|
stage('OpenVidu Server integration tests') {
|
||||||
sh 'cd openvidu/openvidu-server && mvn --batch-mode -Dtest=*IntegrationTest test'
|
sh 'cd openvidu/openvidu-server && mvn --batch-mode -Dtest=io.openvidu.server.test.integration.*Test test'
|
||||||
}
|
}
|
||||||
stage('OpenVidu Server build') {
|
stage('OpenVidu Server build') {
|
||||||
sh 'cd openvidu/openvidu-server/src/dashboard && npm install --unsafe-perm && npm link openvidu-browser && export NG_CLI_ANALYTICS=ci && ./node_modules/@angular/cli/bin/ng build --prod --output-path ../main/resources/static'
|
sh 'cd openvidu/openvidu-server/src/dashboard && npm install --unsafe-perm && npm link openvidu-browser && export NG_CLI_ANALYTICS=ci && ./node_modules/@angular/cli/bin/ng build --prod --output-path ../main/resources/static'
|
||||||
|
@ -75,7 +78,7 @@ node('container') {
|
||||||
'''.stripIndent())
|
'''.stripIndent())
|
||||||
sh 'until $(curl --insecure --output /dev/null --silent --head --fail https://OPENVIDUAPP:MY_SECRET@localhost:4443/); do echo "Waiting for openvidu-server..."; sleep 2; done'
|
sh 'until $(curl --insecure --output /dev/null --silent --head --fail https://OPENVIDUAPP:MY_SECRET@localhost:4443/); do echo "Waiting for openvidu-server..."; sleep 2; done'
|
||||||
}
|
}
|
||||||
stage ('E2E tests') {
|
stage ('OpenVidu E2E tests') {
|
||||||
try {
|
try {
|
||||||
sh(script: '''#!/bin/bash
|
sh(script: '''#!/bin/bash
|
||||||
cd openvidu/openvidu-test-e2e && sudo mvn --batch-mode -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:4443/ -DREMOTE_URL_CHROME=http://172.17.0.1:6666/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:6667/wd/hub/ test
|
cd openvidu/openvidu-test-e2e && sudo mvn --batch-mode -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:4443/ -DREMOTE_URL_CHROME=http://172.17.0.1:6666/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:6667/wd/hub/ test
|
||||||
|
|
Loading…
Reference in New Issue