Created
June 8, 2019 19:45
-
-
Save sergsoares/be3045fe10c5eaf7633f74f86a621e0d to your computer and use it in GitHub Desktop.
Simple script to use as jenkinsfile for experiments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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