Skip to content

Commit

Permalink
PHP7
Browse files Browse the repository at this point in the history
  • Loading branch information
hikari-no-yume committed Jan 10, 2015
1 parent 6fba0cb commit 08bd5f9
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 58 deletions.
25 changes: 18 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
language: php

before_install:
- sudo apt-get update -qq
- sudo apt-get install re2c

before_script:
- composer self-update
- composer install --dev --prefer-source
- ./travis/compile-php7.sh
- PATH=`pwd`:$PATH composer self-update
# using PHP 7 means stuff depending on ">=5.3.3" etc. breaks
# so we make composer ignore it
- PATH=`pwd`:$PATH composer install --dev --prefer-source --ignore-platform-reqs

script:
# use PHP 7 for the actual tests
- PATH=`pwd`:$PATH make test

php:
- 5.6
- hhvm
- 5.6 # lol
#- hhvm

matrix:
allow_failures:
- php: hhvm
#matrix:
# allow_failures:
# - php: hhvm
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "igorw/yolo",
"description": "The microframework with swag.",
"keywords": ["useless", "microframework", "academic", "swag"],
"keywords": ["useless", "microframework", "academic", "swag", "PHP7"],
"license": "MIT",
"authors": [
{
Expand All @@ -10,7 +10,7 @@
}
],
"require": {
"php": "~5.6",
"php": "~7.0",
"symfony/http-foundation": "~2.4"
},
"require-dev": {
Expand Down
139 changes: 94 additions & 45 deletions composer.lock

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

6 changes: 2 additions & 4 deletions examples/hello.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<script language=php>
<?php

require_once __DIR__.'/../vendor/autoload.php';

use function yolo\y;

yolo\yolisp(y('yolo\yolo',
y('lambda', y('request'),
y('new', YoLo\resPONsE::clASS, y('quote', 'yolo'))
y('new', YoLo\resPONsE::clASS, y('quote', "yolo \u{1f640}"))
)
));

%>
Loading

0 comments on commit 08bd5f9

Please sign in to comment.