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

Commit 42d1230

Browse files
committed
Dockerify travis
1 parent 2ffd6ba commit 42d1230

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.travis.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
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

8+
(
9+
cd $(mktemp -d)
10+
curl https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
11+
)
512
composer install
613

714
hh_client
815
hhvm vendor/bin/hacktest tests/
9-
1016
if !(hhvm --version | grep -q -- -dev); then
1117
hhvm vendor/bin/hhast-lint
1218
fi
13-
14-
# Make sure we pass when a release is required
15-
EXPORT_DIR=$(mktemp -d)
16-
git archive --format=tar -o "${EXPORT_DIR}/exported.tar" HEAD
17-
cd "$EXPORT_DIR"
18-
tar -xf exported.tar
19-
composer install --no-dev
20-
echo > .hhconfig
21-
hh_server --check $(pwd)

.travis.yml

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

0 commit comments

Comments
 (0)