Skip to content

Commit 382e6c9

Browse files
Merge pull request #355 from appwrite/feat-improve-tests
2 parents cfbb5a2 + af8dd1a commit 382e6c9

19 files changed

+1089
-659
lines changed

.travis.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11

2-
dist: xenial
2+
dist: focal
33

44
arch:
55
- amd64
66

7+
services:
8+
- docker
9+
710
os: linux
811

912
language: php
1013

1114
php:
12-
- 7.4
15+
- 8.0
16+
17+
env:
18+
- SDK=Android
19+
- SDK=CLI
20+
- SDK=Dart
21+
- SDK=Deno
22+
- SDK=Flutter
23+
- SDK=Kotlin
24+
- SDK=Node
25+
- SDK=PHP
26+
- SDK=Python
27+
- SDK=Ruby
28+
- SDK=SwiftClient
29+
- SDK=SwiftServer
30+
- SDK=Web
1331

1432
notifications:
1533
email:
1634
1735

1836
before_install:
19-
- curl -fsSL https://get.docker.com | sh
20-
- echo '{"experimental":"enabled"}' | sudo tee /etc/docker/daemon.json
21-
- mkdir -p $HOME/.docker
22-
- echo '{"experimental":"enabled"}' | sudo tee $HOME/.docker/config.json
23-
- sudo service docker start
2437
- >
2538
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
2639
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
@@ -32,4 +45,4 @@ install:
3245
- composer install
3346

3447
script:
35-
- vendor/bin/phpunit
48+
- vendor/bin/phpunit tests/${SDK}Test.php

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"Appwrite\\Spec\\": "src/Spec"
1616
}
1717
},
18+
"autoload-dev": {
19+
"psr-4": {"Tests\\": "tests"}
20+
},
1821
"require": {
1922
"php": ">=7.0.0",
2023
"ext-curl": "*",
@@ -24,7 +27,7 @@
2427
"matthiasmullie/minify": "^1.3"
2528
},
2629
"require-dev": {
27-
"phpunit/phpunit": "^7.0"
30+
"phpunit/phpunit": "^9.5.13"
2831
},
2932
"minimum-stability": "dev",
3033
"prefer-stable": true

0 commit comments

Comments
 (0)