summaryrefslogtreecommitdiff
path: root/.github/workflows/distributions_php7.yml
diff options
context:
space:
mode:
authorjvoisin2022-03-20 19:18:17 +0100
committerjvoisin2022-03-20 19:18:17 +0100
commitbcc33313b95bf21d4fb8ce755be6bbfd308bb2e8 (patch)
tree698ed81df0c84ed4cf15efe53e343bc3a0879be2 /.github/workflows/distributions_php7.yml
parent57b345f16ccad6e5b273c58e819ca5adefdcbf72 (diff)
Add more distributions to php8 CI
Diffstat (limited to '.github/workflows/distributions_php7.yml')
-rw-r--r--.github/workflows/distributions_php7.yml121
1 files changed, 121 insertions, 0 deletions
diff --git a/.github/workflows/distributions_php7.yml b/.github/workflows/distributions_php7.yml
new file mode 100644
index 0000000..11222fb
--- /dev/null
+++ b/.github/workflows/distributions_php7.yml
@@ -0,0 +1,121 @@
1name: CI for linux distributions
2on:
3 pull_request:
4 push:
5 schedule:
6 - cron: '0 16 * * 5'
7
8
9jobs:
10 debian:
11 runs-on: ubuntu-latest
12 container: debian:stable
13 steps:
14 - name: Checkout code
15 uses: actions/checkout@v2
16 - name: Remove php8 tests for php7
17 run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt src/tests/disable_function/*_signal.phpt
18 - name: Install dependencies
19 run: |
20 apt update
21 DEBIAN_FRONTEND=noninteractive apt install -y php-dev php-pear
22 - name: Install pecl
23 run: pecl install vld-beta
24 - name: Build and run the testsuite
25 run: make release tests
26 - name: Show logs in case of failure
27 if: ${{ failure() }}
28 run: |
29 grep -r . --include='*.log' src/tests
30
31 fedora:
32 runs-on: ubuntu-latest
33 container: fedora:34
34 steps:
35 - name: Checkout code
36 uses: actions/checkout@v2
37 - name: Remove php8 tests for php7
38 run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt src/tests/disable_function/*_signal.phpt
39 - name: Install dependencies
40 run: |
41 dnf install -y php-devel php-pear make
42 - name: Install pecl
43 run: pecl install vld-beta
44 - name: Build and run the testsuite
45 run: make release tests
46 - name: Show logs in case of failure
47 if: ${{ failure() }}
48 run: |
49 grep -r . --include='*.log' src/tests
50
51 ubuntu:
52 runs-on: ubuntu-latest
53 container: ubuntu:latest
54 steps:
55 - name: Checkout code
56 uses: actions/checkout@v2
57 - name: Remove php8 tests for php7
58 run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt
59 - name: Install dependencies
60 run: |
61 apt update
62 DEBIAN_FRONTEND=noninteractive apt install -y php-dev
63 - name: Install pecl
64 run: pecl install vld-beta
65 - name: Build and run the testsuite
66 run: make tests
67 - name: Show logs in case of failure
68 if: ${{ failure() }}
69 run: |
70 grep -r . --include='*.log' src/tests
71
72 archlinux:
73 runs-on: ubuntu-latest
74 container: archlinux:latest
75 steps:
76 - name: Checkout code
77 uses: actions/checkout@v2
78 - name: Remove php8 tests for php7
79 run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt
80 - name: Install dependencies
81 continue-on-error: true
82 run: |
83 pacman --sync --refresh --noconfirm --quiet php wget autoconf gcc make
84 wget https://pear.php.net/go-pear.phar
85 php go-pear.phar
86 - name: Install pecl
87 continue-on-error: true
88 run: pecl install vld-beta
89 - name: Build SP and run the testsuite
90 continue-on-error: true
91 run: make tests
92 - name: Show logs in case of failure
93 continue-on-error: true
94 if: ${{ failure() }}
95 run: |
96 grep -r . --include='*.log' src/tests
97
98 alpine:
99 runs-on: ubuntu-latest
100 container: alpine:latest
101 steps:
102 - name: Checkout code
103 uses: actions/checkout@v2
104 - name: Remove php8 tests for php7
105 run: rm -rf src/tests/*php8*/ src/tests/*/*_php8.phpt
106 - name: Remove tests failing on alpine for wathever reason
107 run: rm -rf src/tests/cookies_encryption_warning src/tests/upload_validation/upload_validation.phpt /tests/broken_configuration/encrypt_regexp_cookies_bad_regexp.phpt
108 - name: Install dependencies
109 run: apk add php7-dev php7-cgi php7-simplexml php7-xml pcre-dev build-base php7-pear php7-openssl php7-session bash grep
110 - name: Install pecl
111 continue-on-error: true
112 run: pecl install vld-beta
113 - name: Build SP and run the testsuite
114 run: |
115 make release
116 ln -s $(php -r 'echo ini_get("extension_dir");')/* src/modules/
117 make tests
118 - name: Show logs in case of failure
119 if: ${{ failure() }}
120 run: |
121 grep -r . --include='*.log' src/tests