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

Commit

Permalink
Test in docker instead
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Feb 12, 2019
1 parent 7534151 commit 69f52b3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .hhconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
assume_php=false
enable_experimental_tc_features = no_fallback_in_namespaces, unpacking_check_arity, disallow_refs_in_array, disallow_untyped_lambda_as_non_function_type
ignored_paths = [ "vendor/.+/tests/.+" ]
ignored_paths = [ "vendor/.+/tests/.+", "tests/fixtures/.+\.tmp\..+\.hack" ]
safe_array = true
safe_vector_array = true
disallow_destruct = true
Expand Down
8 changes: 8 additions & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
#!/bin/sh
set -ex
apt update -y
DEBIAN_FRONTEND=noninteractive apt install -y php-cli
hhvm --version
php --version

(
cd $(mktemp -d)
curl https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
)
composer install

bin/hh-autoload
cat vendor/autoload.hack
hh_client
hhvm vendor/bin/hacktest tests/*.php
ENABLE_HH_CLIENT_AUTOLOAD=true hhvm vendor/bin/hacktest \
Expand Down
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
language: php
php:
- hhvm-nightly
sudo: required
language: generic
services: docker
env:
- HHVM_VERSION=latest
- HHVM_VERSION=nightly
install:
- docker pull hhvm/hhvm:$HHVM_VERSION
script:
- ./.travis.sh
- docker run --rm -w /var/source -v $(pwd):/var/source hhvm/hhvm:$HHVM_VERSION ./.travis.sh

0 comments on commit 69f52b3

Please sign in to comment.