Skip to content

Commit 74dae86

Browse files
authored
Merge pull request #94 from christyjacob4/feat-na-appwrite-cli
Templates for Appwrite CLI
2 parents 7bacb4e + 4d8b221 commit 74dae86

29 files changed

+1784
-248
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/tests/sdks
55
/.vscode
66
.vs
7+
.env
78

89
# exclude everything
910
examples/*

CONTRIBUTING.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ To install a working development environment follow these instructions:
1616

1717
**Composer CLI**
1818
```bash
19-
composer update --ignore-platform-reqs --optimize-autoloader
19+
composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist
2020
```
2121

2222
**Docker (UNIX)**
2323

2424
```bash
25-
docker run --rm --interactive --tty --volume "$(pwd)":/app composer install
25+
docker run --rm --interactive --tty --volume "$(pwd)":/app composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist
2626
```
2727

2828
**Docker (Windows)**
2929

3030
```bash
31-
docker run --rm --interactive --tty --volume "%cd%":/app composer install
31+
docker run --rm --interactive --tty --volume "%cd%":/app composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-dist
3232
```
3333

3434
3. Follow our contribution guide to learn how you can add support for more languages.
@@ -197,3 +197,8 @@ protected $containers = [
197197
'php-7.4' => 'docker run --rm -v $(pwd):/app -w /app php:7.4-cli php tests/languages/tests-for-php.php',
198198
];
199199
```
200+
201+
Finally, you can run the tests using
202+
```sh
203+
docker run --rm -v $(pwd):/app:rw -w /app -v /var/run/docker.sock:/var/run/docker.sock php:7.4-cli-alpine sh -c "apk add docker-cli && vendor/bin/phpunit tests/SDKTest.php"
204+
```

0 commit comments

Comments
 (0)