Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit e09a66b

Browse files
committed
-travis +GitHub actions
1 parent 8a9d73b commit e09a66b

File tree

5 files changed

+124
-32
lines changed

5 files changed

+124
-32
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: '0 15 * * *'
7+
jobs:
8+
build:
9+
name: HHVM ${{matrix.hhvm}} - ${{matrix.os}}
10+
strategy:
11+
# Run tests on all OS's and HHVM versions, even if one fails
12+
fail-fast: false
13+
matrix:
14+
os: [ ubuntu , macos ]
15+
hhvm:
16+
- 4.64
17+
- latest
18+
- nightly
19+
runs-on: ${{matrix.os}}-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Alias master for Composer `dev-master` version resolution
23+
run: |
24+
if [ ! -e .git/refs/heads/master ]; then
25+
git branch master HEAD
26+
fi
27+
- name: Install Composer
28+
run: .github/workflows/install-composer.sh --install-dir=${{runner.temp}}
29+
- name: Install HHVM (apt)
30+
if: matrix.os == 'ubuntu'
31+
run: |
32+
set -ex
33+
export DEBIAN_FRONTEND=noninteractive
34+
sudo add-apt-repository https://dl.hhvm.com/ubuntu
35+
if [ "${{matrix.hhvm}}" = "nightly" ]; then
36+
sudo apt-get remove hhvm
37+
sudo apt-get install -y hhvm-nightly
38+
elif [ "${{matrix.hhvm}}" = "latest" ]; then
39+
sudo apt-get install -y hhvm
40+
else
41+
sudo add-apt-repository --remove https://dl.hhvm.com/ubuntu
42+
sudo apt-get remove hhvm
43+
DISTRO=$(lsb_release --codename --short)
44+
sudo add-apt-repository \
45+
"deb https://dl.hhvm.com/ubuntu ${DISTRO}-${{matrix.hhvm}} main"
46+
sudo apt-get install -y hhvm
47+
fi
48+
- name: Install HHVM (brew)
49+
if: matrix.os == 'macos'
50+
run: |
51+
brew tap hhvm/hhvm
52+
if [ "${{matrix.hhvm}}" = "latest" ]; then
53+
brew install hhvm
54+
else
55+
brew install hhvm-${{matrix.hhvm}}
56+
fi
57+
- name: Inspect HHVM and Hack versions
58+
run: |
59+
hhvm --version
60+
hh_client --version
61+
- name: Install project dependencies
62+
run: php ${{runner.temp}}/composer.phar install
63+
- name: Typecheck
64+
run: hh_client
65+
- name: Run tests
66+
run: vendor/bin/hacktest tests
67+
- name: Run lint
68+
if: matrix.hhvm != 'nightly'
69+
run: vendor/bin/hhast-lint

.github/workflows/hhvm.gpg.key

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-----BEGIN PGP PUBLIC KEY BLOCK-----
2+
Version: GnuPG v1
3+
4+
mQINBFn8koEBEAC2tPtkphj8gZYHI9mTNUHfQalDo+MNWTGUTNB42asjhTNjipzM
5+
VSxjaZSl5cMLg5YCRuT0AbSIe529FH23yEElc03cGVGgoEnmXtE4+2v7Xa30wCGO
6+
5oUxKfbVatsxEs1y8QEr5Gt+CUFmsApOKgiZq0MsPYmFAuC9CbWdXYa8+E00bXOa
7+
cHCpe+GncCxQmExm7TlrUnURnf3RnNWSEkuPKED/aVggzxNVN6RgRRm4ssZJasM3
8+
TwoI1nVysO5jMfPClvupYscoktO44HBZzH2EeEdpjSV+toD3aZCbmWzXyZjogrFN
9+
j4k5Mme0Xqr4DvRPk5M9SxcQASsCQ8VTyu+ZBUG6zJbddLDEA1BMNIZOG5MyX58O
10+
zed255Q85SAyjHu8pltkfGLd56+MYsckpHaBPMFoCFM4iPcpXOlgcU96pdXJbrR2
11+
mjYI4Le9qRJYYP2kGPkopPwK8nbZJ5Wr7xaclxEc/ODH3mv57KJD7lzmwpnvvmsn
12+
kR/wUHOqwrXojp/oZCUK8KembLiT+MMkY3bne+IY9ef/1qwu4flVBP1CpoaMQEwh
13+
dqzihfwyQ+57ATZHJaj8V9pKAxWh/Df4iFN5mMWA15eBLhRMbAWKJIoLQLcCYwBF
14+
gH3HiO34/uQUHaX6VhRHllA38W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5Ks8IFR+3P9mNDQVf9xlVhnR7N597aKtU5GrpbvtlJy
31+
CoQVtzBqYKcuLC4ZFRiB33HwZrZIxTPH27UUaj1QBz748zIMC6wvtldshjNAAeRr
32+
Jz28twPO2D7svNIaPt2+OXAuRs2yUhitcsDLBV0UlOQ8xH+hzWANyhaJAS7p0k35
33+
kyFOG+n6+2qQkGdlHHuqEzdCL3EiOiK6RrvbWNUnwiG3BdZWgs43hZZBAseX3CHu
34+
MM3vIX/Fc/kuuaCWi2ysyKf7jyi/RiVIAKuLbxAB8eHsyo2G5lA=
35+
=3DTP
36+
-----END PGP PUBLIC KEY BLOCK-----
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
3+
# From https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md
4+
5+
EXPECTED_CHECKSUM="$(wget -q -O - https://composer.github.io/installer.sig)"
6+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
7+
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
8+
9+
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]
10+
then
11+
>&2 echo 'ERROR: Invalid installer checksum'
12+
rm composer-setup.php
13+
exit 1
14+
fi
15+
16+
php composer-setup.php "$@"
17+
RESULT=$?
18+
rm composer-setup.php
19+
exit $RESULT

.travis.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)