tests: add travis prepare script

This commit is contained in:
Torsten Dittmann
2021-04-28 11:54:21 +02:00
parent 7ddf277110
commit ebd41c784f
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
# Only pass a single runtime for CI stability
echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env
+1 -1
View File
@@ -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']);