mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
tests: add travis prepare script
This commit is contained in:
Executable
+2
@@ -0,0 +1,2 @@
|
||||
# Only pass a single runtime for CI stability
|
||||
echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env
|
||||
+1
-1
@@ -28,7 +28,7 @@ before_install:
|
||||
- export COMPOSE_INTERACTIVE_NO_CLI=1
|
||||
|
||||
install:
|
||||
- echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env
|
||||
- ./.travis-ci/prepare.sh
|
||||
- docker-compose up -d
|
||||
- sleep 10
|
||||
|
||||
|
||||
@@ -325,7 +325,7 @@ class FunctionsCustomServerTest extends Scope
|
||||
$this->assertStringContainsString('Test1', $execution['body']['stdout']);
|
||||
$this->assertStringContainsString('http', $execution['body']['stdout']);
|
||||
$this->assertStringContainsString('PHP', $execution['body']['stdout']);
|
||||
$this->assertStringContainsString('7.4', $execution['body']['stdout']);
|
||||
$this->assertStringContainsString('8.0', $execution['body']['stdout']);
|
||||
$this->assertEquals('', $execution['body']['stderr']);
|
||||
$this->assertGreaterThan(0.100, $execution['body']['time']);
|
||||
$this->assertLessThan(0.500, $execution['body']['time']);
|
||||
|
||||
Reference in New Issue
Block a user