Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Support for trevis, scrutinizer and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Fagnoni committed Jan 28, 2016
1 parent 4b0bbc9 commit 401e7f4
Show file tree
Hide file tree
Showing 990 changed files with 89,054 additions and 26 deletions.
23 changes: 23 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
filter:
excluded_paths:
- 'bin/*'
- 'public/*'
- 'tests/*'
- 'test/*'
- 'vendor/*'
- 'samples/*'

checks:
php: true

coding_style:
php: { }

build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=coverage.clover'
coverage:
file: 'coverage.clover'
format: 'php-clover'
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
sudo:
false

language:
php

php:
- 5.5
- 5.6
- hhvm

cache:
directories:
- vendor

matrix:
allow_failures:
- php: hhvm
1 change: 1 addition & 0 deletions .vagrant/machines/default/virtualbox/action_provision
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.5:71dfeb8e-1c05-48f7-b05b-3806a5a84feb
1 change: 1 addition & 0 deletions .vagrant/machines/default/virtualbox/action_set_name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1453988452
1 change: 1 addition & 0 deletions .vagrant/machines/default/virtualbox/creator_uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions .vagrant/machines/default/virtualbox/id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
71dfeb8e-1c05-48f7-b05b-3806a5a84feb
1 change: 1 addition & 0 deletions .vagrant/machines/default/virtualbox/index_uuid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
77ab2e00460d4959852d9ad4f88437b3
27 changes: 27 additions & 0 deletions .vagrant/machines/default/virtualbox/private_key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE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CgYA5GocoDjbqK4juvq80U53W
KHhtfOW7kEMKixEIg/haH3qCeiDf2RMwvJ3DsjAoDZhiQ1A2fi1tWZkzxO3z9slz
charNDiRPdxmA30DbshBeNag/WSnSyF06T0Y+m2rYNFAHv++W4Tlr+nF5bqCfnYC
knC+vIGGn0zQ0OH9fM23AQKBgQCw/nLE9upF57evFzpD3Mz8s4YBXFKwn9mcPXWb
RwMSIEj/D3ciOKgJGboZ/un8OSOtOHir4k2juaDt9+homiV+nUk7eVsur3VNwSA/
EJoMttApuqGXqT8oUKTigYGxufT9HfJv4Ta42Yv07OY2HQRjhra8UkSnH9VebfVC
Y4NLjwKBgQDbiaRLWA6wB8ObgMDTOwuWG0fuUQbIX5IdwZ1RzuVR4ZvXYupG84jP
KloDGIoSnmWkVgP56ROlV8yl+emt566gHqjlZKmLKx6HGPiwa0PAwAZqlIn+v7Xm
LpufpH/zSvAljE3yb3/+uB7HHG9OsBkC6uU1I2ipHasbRpBX0PgUjA==
-----END RSA PRIVATE KEY-----
1 change: 1 addition & 0 deletions .vagrant/machines/default/virtualbox/synced_folders
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/enrico/BOTK-context","disabled":false}}}
22 changes: 20 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
This project adheres to [Semantic Versioning](http://semver.org/) and [changelog format](http://keepachangelog.com/)

## [Unreleased]


## [4.0.2] - 2016-01-28
### Added
- vagrant support
- contribution instructions
- badge management
- trevis-ci support
- scrutinizer support


## [4.0.1] - 2016-01-28
### Added
- integration with packagist
- changelog alignement


## 4.0.0 - 2016-01-28
### Added
- Moved from google code
- Code, doc and tests completed

[Unreleased]: https://github.com/linkeddatacenter/BOTK-context/compare/4.0.0...HEAD
[Unreleased]: https://github.com/linkeddatacenter/BOTK-context/compare/HEAD...4.0.2
[4.0.2]: https://github.com/linkeddatacenter/BOTK-context/compare/4.0.2...4.0.1
[4.0.1]: https://github.com/linkeddatacenter/BOTK-context/compare/4.0.0...4.0.1
82 changes: 82 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
Contributing to BOTK-context
====================================

Contributions to geocodingit are always welcome. You make our lives easier by
sending us your contributions through pull requests.

Pull requests for bug fixes must be based on the current stable branch whereas
pull requests for new features must be based on `master`.

Due to time constraints, we are not always able to respond as quickly as we
would like. Please do not take delays personal and feel free to remind us here,
on IRC, or on Gitter if you feel that we forgot to respond.

Set-up of a local workstation
-----------------------------
Before begin be sure to have:
- a virus free workstation with a fresh OS (windows, MAC, Linux)
- at least 512K Ram required to run the whole integration testing environment
- a processor with virtualization support
- an editor of your choice able read unix-style line endings docs (i.e. notepad++)

Local workstation installation process:
- install [GIT](http://git-scm.com/). Select “checkout as is , commit Unix-style line endings”. If your workstation is windows based and you to want to use pageant for authentication, in windows use putty plint interface as ssh proxy or reconfigure GIT to use ssh tool if needed.
- install [Vagrant](https://www.vagrantup.com/)
- install [Virtualbox](https://www.virtualbox.org/)

You are free to optionally install your preferred language ide (aptana, eclipse, other)


## Using BOTK-context from a git checkout

The following commands can be used to perform the initial checkout from a bash shell:

```shell
git clone https://github.com/linkeddatacenter/BOTK-context.git
cd BOTK-context
```

## Developing code and unit tests

Vagrant and virtualbox will setup a complete integration test environment.

To create and login into integrate testing environment, just type:

```shell
vagrant up
vagrant ssh
```
Note that on first execution the install script will ask for LinkedData.Center endpoint and credentials to use.
The APIs will be available at http://localhost:8080/

All BOTK-context code is shared in /opt/BOTK-context inside virtual host.

Retrieve BOTK-context's dependencies using [Composer](http://getcomposer.org/):

```shell
cd /opt/BOTK-context
composer update
```

Unit tests are performed through PHPUnit. To launch unit tests:

```shell
vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-html test/unit/report
```


Free testenv resources with:

```shell
vagrant destroy --force
```

Sending your code to us
-----------------------

## Standards

We are trying to follow the [PHP-FIG](http://www.php-fig.org)'s standards, so
when you send us a pull request, be sure you are following them.

Please see http://help.github.com/pull-requests/.
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,28 @@ botk/context package
This is a BOTK package. Please refer to http://ontology.it/tools/botk for more info
about BOTK project.


# BOTK\Context
[![Build Status](https://img.shields.io/travis/linkeddatacenter/BOTK-context.svg?style=flat-square)](http://travis-ci.org/linkeddatacenter/BOTK-context)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/linkeddatacenter/BOTK-context.svg?style=flat-square)](https://scrutinizer-ci.com/g/linkeddatacenter/BOTK-context)
[![Latest Version](https://img.shields.io/packagist/v/botk/context.svg?style=flat-square)](https://packagist.org/packages/botk/context)
[![Total Downloads](https://img.shields.io/packagist/dt/botk/context.svg?style=flat-square)](https://packagist.org/packages/botk/context)
[![License](https://img.shields.io/packagist/l/botk/context.svg?style=flat-square)](https://packagist.org/packages/botk/context)

A set of class to manage the context in a RESTful http request.

This is a BOTK package. Please refer to http://ontology.it/tools/botk for more info
about BOTK project.

## Installation

The package is available on [Packagist](https://packagist.org/packages/botk/context).
You can install it using [Composer](http://getcomposer.org).

```bash
composer require botk/context
```


1. Package documentation is in doc directory.
2. Unit tests in tests directory.
cd tests; phpunit --coverage-html ./report
3. Some code examples in samples directory.
3. Some code examples in samples directory.
11 changes: 11 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "opscode-ubuntu-14.04"
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box"
#config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", path: "test/_support/install.sh"
config.vm.network "forwarded_port", guest: 80, host: 8080
end
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "botk/context",
"description": "ini file management, sanitization, validation",
"type": "library",
"license": "mit",
"homepage": "http://ontology.it/tools/botk4/context/",
"license": "MIT",
"homepage": "https://github.com/linkeddatacenter/BOTK-context",
"keywords": ["E-Artspace", "LinkedData.Center", "BOTK", "Sanitization", "Validation"],
"autoload": {
"psr-0": {
Expand All @@ -17,6 +17,9 @@
}
],
"require": {
"php": ">=5.3"
"php": ">=5.5"
},
"require-dev": {
"phpunit/phpunit": "~4.4.0"
}
}
Loading

0 comments on commit 401e7f4

Please sign in to comment.