-
-
Save gordonbanderson/37d2c66dacdd7f1f601103ca5cfa99a4 to your computer and use it in GitHub Desktop.
Running SilverStripe Module Tests With Docker
This file contains 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
SS_BASE_URL="http://localhost" | |
SS_DATABASE_CLASS="MySQLPDODatabase" | |
SS_DATABASE_NAME="unittesting" | |
SS_DATABASE_PASSWORD="" | |
SS_DATABASE_SERVER="database" | |
SS_DATABASE_USERNAME="root" | |
SS_ENVIRONMENT_TYPE="dev" |
This file contains 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
version: '2' | |
services: | |
web: | |
# build: | |
# context: ./docker-ss | |
image: brettt89/silverstripe-web:7.1-platform | |
working_dir: /var/www | |
volumes: | |
- .:/var/www/html | |
ports: | |
- "80:80" | |
database: | |
image: mariadb | |
volumes: | |
- ~/srv/docker/data/mysql/suilven/testing:/var/lib/mysql | |
restart: always | |
environment: | |
- MYSQL_ALLOW_EMPTY_PASSWORD=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get a bash shell on the web container
Clone your module
Execute commands from either Travis or Ciricle CI, this is an example. Note the last step may take likes of 10 mins.
Run your tests!
Optionally upload coverage