Skip to content

Commit

Permalink
Initial commit of timezone validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ssx committed Sep 6, 2017
1 parent d2d2fab commit 192d3e3
Show file tree
Hide file tree
Showing 8 changed files with 2,224 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor
.idea
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preset: psr2
18 changes: 18 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
machine:
pre:
- sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0
timezone:
Europe/London
php:
version: 7.1.0

dependencies:
pre:
- rm /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini
override:
- composer install

test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
- vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml tests
34 changes: 34 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "laravel-validation-rules/valid-timezone",
"description": "Validate that a given timezone is valid.",
"type": "library",
"keywords": [ "laravel", "validation" ],
"license": "Apache-2.0",
"authors": [
{
"name": "Scott Wilcox",
"email": "scott@dor.ky",
"homepage": "http://dor.ky"
}
],
"require": {
"illuminate/validation": "^5.5",
"illuminate/translation": "^5.5"
},
"require-dev": {
"phpunit/phpunit": "~5.7"
},
"autoload": {
"psr-4": {
"App\\Rules\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"scripts": {
"test": "phpunit --colors=always"
}
}
Loading

0 comments on commit 192d3e3

Please sign in to comment.