Skip to content

Commit

Permalink
Merge pull request #26 from silinternational/feature/simplify-testing
Browse files Browse the repository at this point in the history
Simplify testing
  • Loading branch information
forevermatt authored Apr 6, 2020
2 parents 2024552 + df32317 commit 736bff2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
19 changes: 10 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
nbproject/
.DS_Store
vendor/
*.local.php
build/
.vagrant/
.idea/
composer.phar
*.db
nbproject/
.DS_Store
vendor/
*.local.php
build/
.vagrant/
.idea/
composer.phar
*.db
.phpunit.result.cache
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
it-now: clean install phpunit
it-now: clean install test

clean:
sudo rm -rf ./vendor
rm -f composer.lock
docker-compose kill
docker system prune -f

install:
docker-compose run --rm cli bash -c "cd /data;composer install"
docker-compose run --rm cli bash -c "composer install"

update:
docker-compose run --rm cli bash -c "cd /data;composer update"
docker-compose run --rm cli bash -c "composer update"

phpunit:
docker-compose run --rm cli bash -c "cd /data/SilMock/tests;./phpunit"

# For use in virtualbox.
test:
docker-compose run --rm cli bash -c "cd /data/SilMock/tests; ./phpunit"

# For use in a Vagrant VM:
vagrantTest:
cd /var/lib/GA_mock/SilMock/tests; /var/lib/GA_mock/SilMock/tests/phpunit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ If not, then use vagrant up:
- vagrant up
- vagrant ssh
- cd /var/lib/GA_mock
- make test
- make vagrantTest

Data Persistence
----------------
Expand Down

0 comments on commit 736bff2

Please sign in to comment.