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

1
.gitignore vendored
View File

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

15
Jenkinsfile vendored
View File

@ -12,6 +12,21 @@ pipeline {
TAG = "${env.BRANCH_NAME}"
}
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') {
steps {
script {