33 lines
No EOL
689 B
Groovy
33 lines
No EOL
689 B
Groovy
node {
|
|
def app
|
|
|
|
stage('Clone repository') {
|
|
// Let's make sure we have the repository cloned to our workspace
|
|
checkout scm
|
|
}
|
|
|
|
stage('Install dependencies') {
|
|
// Install dependencies for build later
|
|
sh 'composer update --no-dev'
|
|
sh 'yarn install'
|
|
}
|
|
|
|
stage('Vulnr test') {
|
|
snykSecurity(
|
|
snykInstallation: 'snyk',
|
|
targetFile: 'composer.json',
|
|
)
|
|
}
|
|
|
|
stage('Deploy staging') {
|
|
// Deploy to staging host
|
|
sh 'vendor/bin/dep deploy staging'
|
|
}
|
|
|
|
/*
|
|
stage('Test staging') {
|
|
// Run phpunit tests on staging host
|
|
bin/phpunit COMMAND
|
|
}
|
|
*/
|
|
} |