Jenkins CI testing

This commit is contained in:
Juan Ferrer 2019-01-26 14:48:55 +01:00
parent f47ce96ce8
commit 4ee7ed099e
2 changed files with 17 additions and 1 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ npm-debug.log
.eslintcache .eslintcache
datasources.*.json datasources.*.json
print.*.json print.*.json
db.json db.json
junitresults.xml

15
Jenkinsfile vendored
View File

@ -12,6 +12,21 @@ pipeline {
TAG = "${env.BRANCH_NAME}" TAG = "${env.BRANCH_NAME}"
} }
stages { stages {
environment {
FIREFOX_BIN = "firefox/firefox-bin"
}
stage('Test') {
// apt-get update
// apt-get install libgtk-3-0 libdbus-glib-1-2 xvfb
// wget https://ftp.mozilla.org/pub/firefox/releases/64.0.2/linux-x86_64/en-US/firefox-64.0.2.tar.bz2
// tar xvjf firefox-64.0.2.tar.bz2
// rm firefox-64.0.2.tar.bz2
sh "karma start"
sh "gulp docker"
sh "gulp backendUnitTest --junit"
sh "docker rm -f salix-db"
}
stage('Checkout') { stage('Checkout') {
steps { steps {
script { script {