2021-05-05 11:24:41 +02:00
|
|
|
node {
|
|
|
|
def app
|
|
|
|
|
|
|
|
stage('Clone repository') {
|
2022-01-23 00:37:00 +01:00
|
|
|
// Let's make sure we have the repository cloned to our workspace
|
2021-05-05 11:24:41 +02:00
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
|
2022-01-23 00:37:00 +01:00
|
|
|
stage('Install dependencies') {
|
|
|
|
// Install dependencies for build later
|
|
|
|
composer update --no-dev
|
|
|
|
yarn install
|
2021-05-05 11:24:41 +02:00
|
|
|
}
|
|
|
|
|
2022-01-23 00:37:00 +01:00
|
|
|
stage('Vulnr test') {
|
|
|
|
snykSecurity(
|
|
|
|
snykInstallation: 'snyk',
|
|
|
|
targetFile: 'composer.json',
|
|
|
|
)
|
2021-05-05 11:24:41 +02:00
|
|
|
}
|
2021-05-06 14:59:29 +02:00
|
|
|
|
2022-01-23 00:37:00 +01:00
|
|
|
stage('Deploy staging') {
|
|
|
|
// Deploy to staging host
|
|
|
|
vendor/bin/dep deploy staging
|
2021-12-25 14:33:17 +01:00
|
|
|
}
|
|
|
|
|
2022-01-23 00:37:00 +01:00
|
|
|
/*
|
|
|
|
stage('Test staging') {
|
|
|
|
// Run phpunit tests on staging host
|
|
|
|
bin/phpunit COMMAND
|
2021-05-06 14:59:29 +02:00
|
|
|
}
|
2022-01-23 00:37:00 +01:00
|
|
|
/*
|
2021-05-05 11:24:41 +02:00
|
|
|
}
|