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']);