Skip to content

Commit

Permalink
Merge pull request #2 from infinum/develop
Browse files Browse the repository at this point in the history
Adding initial setup
  • Loading branch information
iruzevic authored Apr 10, 2019
2 parents cb53985 + 5b0d4bb commit 37527f3
Show file tree
Hide file tree
Showing 33 changed files with 1,951 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
64 changes: 64 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
sudo: false

dist: trusty

language: php

php:
- 7.0
- 7.1
- 7.2
- 7.3

notifications:
email:
on_success: never
on_failure: change

branches:
only:
- master
- development

cache:
apt: true
directories:
- vendor
- node_modules
- composer
- $HOME/.composer/cache

matrix:
fast_finish: true
include:
- php: 7.3
env: WP_VERSION=latest WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=latest WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=latest WP_MULTISITE=1
- php: 7.1
env: WP_VERSION=latest WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=latest WP_MULTISITE=1

allow_failures:
# Allow failures for unstable builds.
- php: nightly

before_install:
# Speed up build time by disabling Xdebug.
# https://johnblackbourn.com/reducing-travis-ci-build-times-for-wordpress-projects/
# https://twitter.com/kelunik/status/954242454676475904
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
# Install PHP CodeSniffer.
- composer self-update
- composer clearcache
- composer install
- phpenv rehash

script:
# Search for PHP syntax errors.
- find -L . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
# Run PHPCS.
- composer check-cs . -- --runtime-set ignore_warnings_on_exit 1
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Eightshift Libs

TBD
44 changes: 44 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "infinum/eightshift-libs",
"description": "WordPress libs developed by Eightshift team to use in modern WordPress.",
"keywords": [
"composer", "installer", "plugin"
],
"homepage": "https://eightshift.com/",
"license": "MIT",
"authors": [
{
"name": "Eightshift team",
"email": "[email protected]",
"homepage": "https://eightshift.com/",
"role": "Developer / IT Manager"
}
],
"support": {
"issues": "https://github.com/infinum/eightshift-libs/issues",
"source": "https://github.com/infinum/eightshift-libs"
},
"require": {
"php": ">=7.0"
},
"require-dev": {
"infinum/coding-standards-wp": "^0.4.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5"
},
"autoload": {
"psr-4": {
"Eightshift_Libs\\": "src/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"optimize-autoloader": true,
"process-timeout": 2000
},
"scripts": {
"check-cs": "@php ./vendor/bin/phpcs",
"fix-cs": "@php ./vendor/bin/phpcbf"
}
}
Loading

0 comments on commit 37527f3

Please sign in to comment.