Skip to content

Commit

Permalink
test on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Feb 13, 2019
1 parent 0132de1 commit 5ff1c75
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
17 changes: 14 additions & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
#!/bin/sh
set -ex
apt update -y
DEBIAN_FRONTEND=noninteractive apt install -y php-cli zip unzip
hhvm --version
php --version

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

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

hhvm vendor/bin/hhast-lint
# ... but we probably should enable lint
#if !(hhvm --version | grep -q -- -dev); then
# hhvm vendor/bin/hhast-lint
#fi
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: php
php:
- hhvm
sudo: required
language: generic
services: docker
env:
- HHVM_VERSION=latest
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 5ff1c75

Please sign in to comment.