Skip to content

Commit 924651d

Browse files
authored
Merge pull request #1 from trms/setup-circle-ci
CircleCI 2.0 setup
2 parents fd53b58 + 94c2d81 commit 924651d

File tree

6 files changed

+132
-67
lines changed

6 files changed

+132
-67
lines changed

.circleci/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# PHP CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-php/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/php:cli
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mysql:9.4
16+
17+
working_directory: ~/repo
18+
19+
steps:
20+
- checkout
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
keys:
25+
- v1-dependencies-{{ checksum "composer.json" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: composer install -n --prefer-dist
30+
31+
- save_cache:
32+
paths:
33+
- ./vendor
34+
key: v1-dependencies-{{ checksum "composer.json" }}
35+
36+
# run tests!
37+
- run: vendor/bin/phpunit ./Tests

.codeclimate.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
engines:
3+
duplication:
4+
enabled: true
5+
config:
6+
languages:
7+
- php
8+
fixme:
9+
enabled: true
10+
phpmd:
11+
enabled: true
12+
ratings:
13+
paths:
14+
- "**.inc"
15+
- "**.js"
16+
- "**.jsx"
17+
- "**.module"
18+
- "**.php"
19+
- "**.py"
20+
- "**.rb"
21+
exclude_paths: ["Tests/"]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[![CircleCI build badge](https://circleci.com/gh/trms/carousel-api-php.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/trms/carousel-api-php.svg?style=shield&circle-token=:circle-token)
2+
[![License](https://poser.pugx.org/trms/carousel/license)](https://packagist.org/packages/trms/carousel)
3+
[![Total Downloads](https://poser.pugx.org/trms/carousel/downloads)](https://packagist.org/packages/trms/carousel)
4+
[![Latest Stable Version](https://poser.pugx.org/trms/carousel/version)](https://packagist.org/packages/trms/carousel)
5+
[![Code Climate](https://img.shields.io/codeclimate/github/trms/carousel-api-php.svg)]()
6+
17
# PHP Package for the Carousel API
28
This package is designed to be a fluent interface for Tightrope Media Systems' Carousel API. For more information on TRMS and the Carousel software please visit [www.trms.com](https://www.trms.com).
39

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "trms/carousel",
33
"description": "A PHP package to access Tightrope Media Systems' Carousel Software API",
4+
"license": "MIT",
45
"require": {
56
"nesbot/carbon": "^1.22",
67
"guzzlehttp/guzzle": "~6.0",

0 commit comments

Comments
 (0)