Created
July 9, 2018 22:42
-
-
Save wilr/81a9c2f45403b6f065d4e5eb00680859 to your computer and use it in GitHub Desktop.
Run SilverStripe PHPUnit tests on Bitbucket Pipelines.
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
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