Skip to content

Commit 8d37757

Browse files
committed
init
0 parents  commit 8d37757

File tree

53 files changed

+181
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+181
-0
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
test:
7+
name: Test PHP-${{ matrix.php-versions }} on ${{ matrix.operating-system }}
8+
runs-on: ${{ matrix.operating-system }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
operating-system: [ubuntu-18.04, ubuntu-16.04]
13+
php-versions: ['5.3', '5.4', '5.5']
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Install PHP
19+
run: |
20+
ls
21+
cd php-${{ matrix.php-versions }} || exit
22+
sudo chmod a+x *.sh
23+
./install.sh
24+
./post-install.sh
25+
- name: Test versions and extensions
26+
run: |
27+
php$ver -v | head -n 1
28+
php-cgi$ver -v | head -n 1
29+
php-config$ver --version
30+
phpize$ver -v
31+
php$ver -m
32+
pecl -V
33+
env:
34+
ver: ${{ matrix.php-versions }}
35+
release:
36+
name: Update dist
37+
needs: test
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v2
42+
- name: Package and ship
43+
run: |
44+
for v in 5.3 5.4 5.5; do
45+
sudo XZ_OPT=-9 tar cfJ php-$v.tar.xz php-$v
46+
shopt -s nullglob
47+
for f in php-$v.tar.xz; do
48+
sha256sum "$f" >"${f}".sha256sum.txt
49+
done
50+
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X DELETE https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/php-$v.tar.xz || true
51+
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -T php-$v.tar.xz https://api.bintray.com/content/shivammathur/php/"$v"-linux/"$v"/php-$v.tar.xz || true
52+
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X POST https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/"$v"-linux/"$v"/publish || true
53+
done
54+
env:
55+
BINTRAY_KEY: ${{ secrets.bintray_key }}
56+
BINTRAY_USER: shivammathur
57+
BINTRAY_REPO: php

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/install.sh

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Shivam Mathur
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 36 additions & 0 deletions
Binary file not shown.
6.71 MB
Binary file not shown.
86 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)