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

Commit f5d7f7f

Browse files
fredemmottfacebook-github-bot
authored andcommitted
Dockerify Travis-CI config
Summary: Pull Request resolved: #12 Differential Revision: D14059904 fbshipit-source-id: 552512e5a06efd08e5b662494a95f2b649974882
1 parent 6b8ab3b commit f5d7f7f

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.travis.sh

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

5-
composer 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
613

714
hh_client
8-
915
hhvm vendor/bin/hacktest tests/
10-
hhvm vendor/bin/hhast-lint
16+
if !(hhvm --version | grep -q -- -dev); then
17+
hhvm vendor/bin/hhast-lint
18+
fi

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
language: php
2-
php:
3-
- hhvm
4-
- hhvm-nightly
5-
matrix:
6-
allow_failures:
7-
- php: 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
88
script:
9-
- ./.travis.sh
9+
- docker run --rm -w /var/source -v $(pwd):/var/source hhvm/hhvm:$HHVM_VERSION ./.travis.sh

0 commit comments

Comments
 (0)