Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/structure upgrade #23

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_size = 2
indent_style = space

[*.php]
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
21 changes: 17 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
* text=auto
*.java eol=lf text ident diff=java
*.c eol=lf text ident diff=cpp
*.h eol=lf text ident diff=cpp
*.cpp eol=lf text ident diff=cpp
*.xml eol=lf text ident diff=html
*.vm text ident
*.php eol=lf text ident diff=php
*.phps eol=lf text ident diff=php
*.properties text ident
*.js text ident diff=html
*.css text ident diff=html
*.js eol=lf text ident diff=java
*.json eol=lf text ident diff=java
*.css eol=lf text ident diff=html
*.sh eol=lf text ident
*.bat eol=crlf text ident
*.vcproj eol=crlf text ident
*.cmd eol=crlf text ident
*.vcproj eol=crlf text ident
*.md eol=lf text ident diff=html
*.gif binary
*.png binary
*.jpg binary
*.jar binary
*.class binary
*.gz binary
*.tar binary
*.dll binary
*.exe binary
*.zip binary
65 changes: 2 additions & 63 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,69 +1,8 @@
### PhpStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm

*.iml

## Directory-based project format:
.idea/

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties

### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# Project specific
# clickalicious
__*/
docs/coverage/*
build/*
bin/*

# Common
*.bak
*.tmp
*.log
*.old
.settings
.buildpath
.project
.externalToolBuilders

# Composer
vendor/
composer.lock

# Node & npm
npm_modules/
88 changes: 0 additions & 88 deletions .scrutinizer.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
preset: symfony

risky: true

finder:
exclude:
- "tests"
name:
- "*.php"
23 changes: 12 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
language: php

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

sudo: false

matrix:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true

Expand All @@ -26,29 +27,28 @@ env:
- PREFER_LOWEST=""

before_script:
- composer update --prefer-dist $PREFER_LOWEST
- composer update --ignore-platform-reqs --prefer-dist $PREFER_LOWEST
- composer --optimize-autoloader --no-interaction

script:
- bin/phpunit -c tests/ --coverage-clover=coverage.clover --coverage-html=./docs/coverage
- bin/phpunit --configuration . --coverage-clover=build/logs/clover.xml --coverage-html=build/html/coverage

after_script:
# We upload only for reference platform! This is our base for further code analyses and so on.
- if [ $(phpenv version-name) == "5.4" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ $(phpenv version-name) == "5.4" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover > /dev/null 2>&1; fi
- if [ $(phpenv version-name) == "5.6" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then bin/codacycoverage clover build/logs/clover.xml > /dev/null 2>&1; fi
- if [ $(phpenv version-name) == "5.6" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then cat build/logs/clover.xml; fi

after_success:
# Push coverage to github pages branch
- chmod +x ./update-gh-pages.sh
- if [ $(phpenv version-name) == "5.4" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then bash ./update-gh-pages.sh; fi
- if [ $(phpenv version-name) == "5.6" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then bash ./update-gh-pages.sh; fi
# CREATE GIT TAG
- git config --global user.email "[email protected]"
- git config --global user.name "Travis"
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
- echo -n $GIT_TAG > public/version
- git commit -m "Set build VERSION number" public/version
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --tags --quiet https://[email protected]/clickalicious/Memcached.php > /dev/null 2>&1
- git push --tags --quiet https://[email protected]/clickalicious/memcached-php > /dev/null 2>&1

# Blacklist the pushed tag from above to prevent black hole
branches:
Expand All @@ -57,7 +57,8 @@ branches:

# Who to notify?
notifications:
slack: clickalicious:$SLACKKEY
slack:
secure: UFIXK2u7xalPWZppJ+X8aU9qjHWompS6qpBxyjYd8NyYIdTC8HvrovatS150F/b0QUnZXGaHe416vmooKRVDv6JgsR+v+sf/XAiAsc/vPSDO734zWZgubQCF3+jmKV2rD7OGnHgn/LBnREJhF26o10ox3A2UQ3G4kkFwP1q+i6g=
email:
recipients:
- [email protected]
- [email protected]
111 changes: 0 additions & 111 deletions Demo.php

This file was deleted.

Loading