Skip to content

Instantly share code, notes, and snippets.

@sergsoares
Created June 8, 2019 19:45
Show Gist options
  • Select an option

  • Save sergsoares/be3045fe10c5eaf7633f74f86a621e0d to your computer and use it in GitHub Desktop.

Select an option

Save sergsoares/be3045fe10c5eaf7633f74f86a621e0d to your computer and use it in GitHub Desktop.
Simple script to use as jenkinsfile for experiments.
pipeline {
agent { docker { image 'composer' } }
environment { HOME = '.' }
stages {
stage('build') {
steps {
git 'https://github.com/sergsoares/payment-api'
sh 'composer install'
sh 'cp .env.example .env'
sh 'php artisan key:generate'
}
}
stage('test') {
steps {
sh 'vendor/bin/phpunit'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment