summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Voisin2021-03-25 18:55:27 +0000
committerjvoisin2021-03-26 10:26:00 +0100
commit654552c14ba8c98a244f82f9b8f1225a68526efb (patch)
tree46c180bcb939abace306869e59462799e7a4f11f
parentd93bd974cfb819bd2a5d2b44853802253b3aaa0f (diff)
Add PHP8 for linux distributions on the CI
-rw-r--r--.github/workflows/distributions_php8.yml32
-rw-r--r--src/tests/broken_configuration_php8/broken_conf_session_encryption_without_encryption_key.phpt1
-rw-r--r--src/tests/broken_configuration_php8/broken_conf_session_encryption_without_env_var.phpt1
3 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/distributions_php8.yml b/.github/workflows/distributions_php8.yml
new file mode 100644
index 0000000..f055499
--- /dev/null
+++ b/.github/workflows/distributions_php8.yml
@@ -0,0 +1,32 @@
1name: CI for linux distributions, on php8
2on: ['pull_request', 'push']
3
4jobs:
5 alpine:
6 runs-on: ubuntu-latest
7 container: alpine:edge
8 steps:
9 - name: Checkout code
10 uses: actions/checkout@v2
11 - name: Remove php7 tests for php8
12 run: rm -rf src/tests/*php7*/
13 - name: Remove tests failing on alpine for wathever reason
14 run: rm -rf src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/
15 - name: Install dependencies
16 run: apk add php8-dev php8-cgi php8-simplexml php8-xml pcre-dev build-base php8-pear php8-openssl
17 - name: Install pecl
18 continue-on-error: true
19 run: pecl install vld-beta
20 - name: Link phpize
21 run: ln -s /usr/bin/phpize8 /usr/bin/phpize
22 - name: Link php-config
23 run: ln -s /usr/bin/php-config8 /usr/bin/php-config
24 - name: Build and run the testsuite
25 continue-on-error: true
26 run: make tests
27 - name: Show logs in case of failure
28 if: ${{ failure() }}
29 continue-on-error: true
30 run: |
31 grep -r . ./src/tests/*/*.out
32 grep -r . ./src/tests/*/*.diff
diff --git a/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_encryption_key.phpt b/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_encryption_key.phpt
index 046dc7d..62ee41e 100644
--- a/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_encryption_key.phpt
+++ b/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_encryption_key.phpt
@@ -6,6 +6,7 @@ Broken configuration - encrypted session without encryption key
6--INI-- 6--INI--
7sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_encryption_key.ini 7sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_encryption_key.ini
8--FILE-- 8--FILE--
9--XFAIL--
9--EXPECT-- 10--EXPECT--
10 11
11Fatal error: [snuffleupagus][0.0.0.0][config][log] You're trying to use the session cookie encryption feature on line 2 without having set the `.secret_key` option in`sp.global`: please set it first in Unknown on line 0 12Fatal error: [snuffleupagus][0.0.0.0][config][log] You're trying to use the session cookie encryption feature on line 2 without having set the `.secret_key` option in`sp.global`: please set it first in Unknown on line 0
diff --git a/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_env_var.phpt b/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_env_var.phpt
index bb0f212..5acc1cd 100644
--- a/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_env_var.phpt
+++ b/src/tests/broken_configuration_php8/broken_conf_session_encryption_without_env_var.phpt
@@ -6,6 +6,7 @@ Broken configuration - encrypted session without env var
6--INI-- 6--INI--
7sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_env_var.ini 7sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_env_var.ini
8--FILE-- 8--FILE--
9--XFAIL--
9--EXPECT-- 10--EXPECT--
10 11
11Fatal error: [snuffleupagus][0.0.0.0][config][log] You're trying to use the session cookie encryption feature on line 2 without having set the `.cookie_env_var` option in`sp.global`: please set it first in Unknown on line 0 12Fatal error: [snuffleupagus][0.0.0.0][config][log] You're trying to use the session cookie encryption feature on line 2 without having set the `.cookie_env_var` option in`sp.global`: please set it first in Unknown on line 0