Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Repo init
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Dec 20, 2015
0 parents commit a2591ca
Show file tree
Hide file tree
Showing 24 changed files with 1,572 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
build:
environment:
php:
version: 5.6

dependencies:
before:
-
command: 'mkdir -p build/logs'

tests:
override:
-
command: 'vendor/bin/tester tests -p php -c ./tests/php.ini-unix --coverage build/logs/clover.xml --coverage-src src'
coverage:
file: build/logs/clover.xml
format: php-clover
20 changes: 20 additions & 0 deletions .travis.composer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

$version = getenv('NETTE');

if (!$version || $version == 'default') {
exit;
}

echo "Nette version " . $version . PHP_EOL;

$file = __DIR__ . '/composer.json';
$content = file_get_contents($file);
$composer = json_decode($content, TRUE);

$composer['require']['nette/application'] = $version;
$composer['require']['nette/di'] = $version;
$composer['require']['nette/utils'] = $version;
$composer['require']['nette/forms'] = $version;
$content = json_encode($composer);
file_put_contents($file, $content);
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: php

env:
- NETTE=default
- NETTE=~2.2.0

php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

matrix:
allow_failures:
- php: hhvm
- php: 7.0

before_script:
- php .travis.composer.php
- composer self-update
- composer install --no-interaction --prefer-source --dev

script:
- vendor/bin/tester -s -p php tests

after_failure:
- 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done'
15 changes: 15 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "ipub/form-phone",
"main": [
"client-side/js/ipub.formPhone.js"
],
"ignore": [
"src",
"tests",
".gitignore",
".scrutinizer.yml",
".travis.composer.php",
".travis.yml",
"composer.json"
]
}
1 change: 1 addition & 0 deletions client-side/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
1 change: 1 addition & 0 deletions client-side/js/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
Loading

0 comments on commit a2591ca

Please sign in to comment.