Skip to content

Commit 19d15fe

Browse files
authored
adds execute permission to composer.sh (GoogleCloudPlatform#963)
1 parent 75d80e3 commit 19d15fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ accept your pull requests.
4242
export GOOGLE_STORAGE_BUCKET=YOUR_BUCKET
4343
```
4444

45-
To run the tests in a samples directory,
45+
To run the tests in a samples directory, first install the global Composer
46+
dependencies by running `bash test/composer.sh`. Then, run `composer install`
47+
and `phpunit` in any directory containing a `phpunit.xml.dist` file to run
48+
the tests.
4649
```
50+
bash test/composer.sh
4751
cd $SAMPLES_DIRECTORY
4852
composer install
49-
vendor/bin/phpunit
53+
phpunit
5054
```
5155

5256
1. Ensure that your code adheres to the existing style in the sample to which

testing/composer.sh

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/bin/bash
12
composer global require "google/cloud-tools:dev-master"
23
composer global require "phpunit/phpunit:^5"

0 commit comments

Comments
 (0)