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

Commit

Permalink
Add composer.lock, dockerify testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Feb 13, 2019
1 parent 208fa5d commit a652d50
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vendor/
*.swp
*~
composer.lock
15 changes: 14 additions & 1 deletion .travis.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
#!/bin/sh
set -ex
apt update -y
DEBIAN_FRONTEND=noninteractive apt install -y php-cli zip unzip
hhvm --version
php --version
if [ ! -e .git/refs/heads/master ]; then
# - Travis clones with `--branch`, then moves to a detached HEAD state
# - if we're on a detached HEAD, Composer uses master to resolve branch
# aliases.
# So, create the master branch :p
git branch master HEAD
fi

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

hh_client

hhvm vendor/bin/hacktest tests/
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: php
php:
- hhvm-nightly
sudo: required
language: generic
services: docker
env:
- HHVM_VERSION=latest
install:
- docker pull hhvm/hhvm:$HHVM_VERSION
script:
- ./.travis.sh
notifications:
webhooks: https://code.facebook.com/travis/webhook/
- docker run --rm -w /var/source -v $(pwd):/var/source hhvm/hhvm:$HHVM_VERSION ./.travis.sh
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"name": "hhvm/hsl-experimental",
"description": "The Hack Standard Library - Experimental Additions",
"license": "MIT",
"extra": {
"branch-alias": {
"dev-master": "4.x-dev",
"dev-v4.0.x": "4.0.x-dev"
}
},
"require-dev": {
"hhvm/hacktest": "^1.0",
"facebook/fbexpect": "^2.0",
Expand Down
290 changes: 290 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a652d50

Please sign in to comment.