Skip to content

Commit 82e1d52

Browse files
committed
small update on testing locally
1 parent 534d97c commit 82e1d52

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

Diff for: TESTING.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,23 @@ Put @wip in the feature you are working on, so that it doesn't interfere with Gi
1515

1616
Then run
1717
```sh
18-
vagant up
18+
vagant up --provision
1919
```
2020

2121
Once it has run once, you can fire off further runs with
2222

2323
```sh
2424
vagant ssh
2525
cd /vagrant/tests
26+
sudo su
2627
make test
2728
```
2829

2930
You can also use the following commands:
3031

31-
make verbosetest - show progress during testing, useful to identify issues in your tests
32-
make test-wip - only run the features marked "@wip"
33-
make testall - run all tests
32+
- make verbosetest - show progress during testing, useful to identify issues in your tests
33+
- make test-wip - only run the features marked "@wip"
34+
- make testall - run all tests
3435

3536

3637

Diff for: Vagrantfile

+2-6
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ Vagrant.configure("2") do |config|
2727
add-apt-repository ppa:ondrej/php
2828
DEBIAN_FRONTEND=noninteractive apt update
2929
DEBIAN_FRONTEND=noninteractive apt install -y make mariadb-client mariadb-server postfix chromium-chromedriver firefox openjdk-8-jre-headless fonts-liberation xdg-utils
30-
DEBIAN_FRONTEND=noninteractive apt install -y php7.2 php7.2-mbstring php7.2-curl php7.2-mysql php7.2-xml php7.2-zip
31-
DEBIAN_FRONTEND=noninteractive apt install -y php7.3 php7.3-mbstring php7.3-curl php7.3-mysql php7.3-xml php7.3-zip
32-
DEBIAN_FRONTEND=noninteractive apt install -y php7.4 php7.4-mbstring php7.4-curl php7.4-mysql php7.4-xml php7.4-zip
33-
DEBIAN_FRONTEND=noninteractive apt install -y php8.0 php8.0-mbstring php8.0-curl php8.0-mysql php8.0-xml php8.0-zip
30+
DEBIAN_FRONTEND=noninteractive apt install -y php${PHPVERSION} php${PHPVERSION}-mbstring php${PHPVERSION}-curl php${PHPVERSION}-mysql php${PHPVERSION}-xml php${PHPVERSION}-zip
31+
3432
[[ ! -f /usr/bin/geckodriver ]] && {
3533
wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz
3634
tar zxf geckodriver-v0.29.0-linux64.tar.gz
@@ -39,8 +37,6 @@ Vagrant.configure("2") do |config|
3937
update-alternatives --set php /usr/bin/php$PHPVERSION
4038
update-alternatives --set phar /usr/bin/phar$PHPVERSION
4139
update-alternatives --set phar.phar /usr/bin/phar.phar$PHPVERSION
42-
update-alternatives --set phpize /usr/bin/phpize$PHPVERSION
43-
update-alternatives --set php-config /usr/bin/php-config$PHPVERSION
4440
[[ ! -z $(which google-chrome) ]] || {
4541
[[ ! -f google-chrome-stable_current_amd64.deb ]] && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
4642
dpkg -i google-chrome-stable_current_amd64.deb

0 commit comments

Comments
 (0)