From ebd41c784f2f20e7e434095906aa189596c01e8d Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 28 Apr 2021 11:54:21 +0200 Subject: [PATCH] tests: add travis prepare script --- .travis-ci/prepare.sh | 2 ++ .travis.yml | 2 +- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 .travis-ci/prepare.sh diff --git a/.travis-ci/prepare.sh b/.travis-ci/prepare.sh new file mode 100755 index 0000000000..4b7a939433 --- /dev/null +++ b/.travis-ci/prepare.sh @@ -0,0 +1,2 @@ +# Only pass a single runtime for CI stability +echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 4e961b6379..930f9c0fb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index f0eab6b0c7..edd9081c91 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -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']);