tests: add travis prepare script
This commit is contained in:
parent
7ddf277110
commit
ebd41c784f
3 changed files with 4 additions and 2 deletions
2
.travis-ci/prepare.sh
Executable file
2
.travis-ci/prepare.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
# Only pass a single runtime for CI stability
|
||||||
|
echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env
|
|
@ -28,7 +28,7 @@ before_install:
|
||||||
- export COMPOSE_INTERACTIVE_NO_CLI=1
|
- export COMPOSE_INTERACTIVE_NO_CLI=1
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env
|
- ./.travis-ci/prepare.sh
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
- sleep 10
|
- sleep 10
|
||||||
|
|
||||||
|
|
|
@ -325,7 +325,7 @@ class FunctionsCustomServerTest extends Scope
|
||||||
$this->assertStringContainsString('Test1', $execution['body']['stdout']);
|
$this->assertStringContainsString('Test1', $execution['body']['stdout']);
|
||||||
$this->assertStringContainsString('http', $execution['body']['stdout']);
|
$this->assertStringContainsString('http', $execution['body']['stdout']);
|
||||||
$this->assertStringContainsString('PHP', $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->assertEquals('', $execution['body']['stderr']);
|
||||||
$this->assertGreaterThan(0.100, $execution['body']['time']);
|
$this->assertGreaterThan(0.100, $execution['body']['time']);
|
||||||
$this->assertLessThan(0.500, $execution['body']['time']);
|
$this->assertLessThan(0.500, $execution['body']['time']);
|
||||||
|
|
Loading…
Reference in a new issue