-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
docker pull metadrop/dind-for-drupal-boilerplate:v0.1 | ||
echo " Create a docker container fromt he downloaded image." | ||
cid=$(docker run -d --privileged --name testrunner --mount type=bind,source=.,target=/tests metadrop/dind-for-drupal-boilerplate:v0.1) | ||
cid=$(docker run -d --privileged --name testrunner --mount type=bind,source=.,target=/boilerplate_tests metadrop/dind-for-drupal-boilerplate:v0.1) | ||
echo "Container ID is $cid" | ||
sleep 5 | ||
|
@@ -42,18 +42,21 @@ jobs: | |
docker exec $cid chown :tester /var/run/docker.sock || echo "chown failed" | ||
docker exec $cid ls -la /var/run/ | ||
docker exec $cid git config --global user.email "[email protected]" | ||
docker exec $cid git config --global user.name "Your Name" | ||
echo "Download and uncompress shellspec, the test framework used for testing." | ||
docker exec $cid wget https://github.com/shellspec/shellspec/releases/download/0.28.1/shellspec-dist.tar.gz -O /opt/shellspec-dist.tar.gz | ||
docker exec $cid tar xfvz /opt/shellspec-dist.tar.gz -C /opt/ | ||
# Prepare environment: run composer install | ||
docker exec -u tester -w /tests/ $cid composer install --ignore-platform-reqs | ||
docker exec -u tester -w /boilerplate_tests/ $cid composer install --ignore-platform-reqs | ||
# Run boilerplate assistant | ||
docker exec -u tester -w /tests/ $cid composer boilerplate:assistant | ||
docker exec -u tester -w /boilerplate_tests/ $cid composer boilerplate:assistant | ||
docker exec -u tester -w /tests/ $cid behat | ||
docker exec -u tester -w /boilerplate_tests/ $cid behat | ||
# Run tests! | ||
docker exec -u tester -w /tests/ $cid /opt/shellspec/shellspec | ||
docker exec -u tester -w /boilerplate_tests/ $cid /opt/shellspec/shellspec |