Skip to content

Commit 5ff1c75

Browse files
committed
test on Travis
1 parent 0132de1 commit 5ff1c75

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.travis.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
#!/bin/sh
22
set -ex
3+
apt update -y
4+
DEBIAN_FRONTEND=noninteractive apt install -y php-cli zip unzip
35
hhvm --version
6+
php --version
47

5-
wget https://getcomposer.org/composer.phar
6-
hhvm ./composer.phar install --ignore-platform-reqs
8+
(
9+
cd $(mktemp -d)
10+
curl https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
11+
)
12+
composer install
713

814
hh_client
15+
# no run-time tests for this as it's just interfaces
16+
# hhvm vendor/bin/hacktest tests/
917

10-
hhvm vendor/bin/hhast-lint
18+
# ... but we probably should enable lint
19+
#if !(hhvm --version | grep -q -- -dev); then
20+
# hhvm vendor/bin/hhast-lint
21+
#fi

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
language: php
2-
php:
3-
- hhvm
1+
sudo: required
2+
language: generic
3+
services: docker
4+
env:
5+
- HHVM_VERSION=latest
6+
install:
7+
- docker pull hhvm/hhvm:$HHVM_VERSION
48
script:
5-
- ./.travis.sh
9+
- docker run --rm -w /var/source -v $(pwd):/var/source hhvm/hhvm:$HHVM_VERSION ./.travis.sh

0 commit comments

Comments
 (0)