Skip to content

Instantly share code, notes, and snippets.

@wilr
Created July 9, 2018 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilr/81a9c2f45403b6f065d4e5eb00680859 to your computer and use it in GitHub Desktop.
Save wilr/81a9c2f45403b6f065d4e5eb00680859 to your computer and use it in GitHub Desktop.
Run SilverStripe PHPUnit tests on Bitbucket Pipelines.
image: brettt89/silverstripe-web:7.1-platform
pipelines:
default:
- step:
services:
- mysql
caches:
- composer
script:
- echo -e 'SS_ENVIRONMENT_TYPE="dev"\nSS_DATABASE_CLASS="MySQLDatabase"\nSS_DATABASE_USERNAME="root"\nSS_DATABASE_PASSWORD="password"\nSS_DATABASE_SERVER="127.0.0.1"\nSS_DATABASE_NAME="pipelines"' > .env
- composer install
- vendor/bin/phpunit
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'pipelines'
MYSQL_ROOT_PASSWORD: 'password'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment