Skip to content

Commit c2524f1

Browse files
committed
Update with default package development files and config.
1 parent 36251bc commit c2524f1

10 files changed

+67
-57
lines changed

.github/workflows/Build.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
on: [push]
3+
jobs:
4+
test:
5+
name: Test
6+
runs-on: ubuntu-18.04
7+
steps:
8+
- uses: actions/checkout@v1
9+
- name: Checkout
10+
run: git checkout "${GITHUB_REF:11}"
11+
- name: Composer Install
12+
run: composer install
13+
- name: PHPCS
14+
run: ./vendor/bin/phpcs src tests
15+
- name: Run Tests
16+
run: ./vendor/bin/phpunit
17+
- name: Coveralls
18+
if: github.ref == 'refs/heads/master'
19+
run: ./vendor/bin/php-coveralls -v --coverage_clover build/coverage.xml --json_path build/coveralls-upload.json
20+
env:
21+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
22+
release:
23+
name: Release
24+
if: github.ref == 'refs/heads/master'
25+
needs: test
26+
runs-on: ubuntu-18.04
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v1
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: 12
34+
- name: Install dependencies
35+
run: yarn install
36+
- name: Release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: npx semantic-release@15

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ build
22
composer.lock
33
docs
44
vendor
5-
coverage
5+
coverage
6+
.phpunit.result.cache

.releaserc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugins:
2+
- @semantic-release/commit-analyzer
3+
- @semantic-release/release-notes-generator
4+
- @semantic-release/github

.scrutinizer.yml

-19
This file was deleted.

.styleci.yml

-4
This file was deleted.

.travis.yml

-21
This file was deleted.

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# Very short description of the package
1+
# Laravel Analytics
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/ohseesoftware/laravel-analytics.svg?style=flat-square)](https://packagist.org/packages/ohseesoftware/laravel-analytics)
4-
[![Build Status](https://img.shields.io/travis/ohseesoftware/laravel-analytics/master.svg?style=flat-square)](https://travis-ci.org/ohseesoftware/laravel-analytics)
5-
[![Quality Score](https://img.shields.io/scrutinizer/g/ohseesoftware/laravel-analytics.svg?style=flat-square)](https://scrutinizer-ci.com/g/ohseesoftware/laravel-analytics)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/ohseesoftware/laravel-analytics.svg?style=flat-square)](https://packagist.org/packages/ohseesoftware/laravel-analytics)
3+
[![Current Release](https://img.shields.io/github/release/ohseesoftware/laravel-analytics.svg?style=flat-square)](https://github.com/ohseesoftware/laravel-analytics/releases)
4+
![Build Status Badge](https://github.com/ohseesoftware/laravel-analytics/workflows/Build/badge.svg)
5+
[![Coverage Status](https://coveralls.io/repos/github/ohseesoftware/laravel-analytics/badge.svg?branch=master)](https://coveralls.io/github/ohseesoftware/laravel-analytics?branch=master)
6+
[![Maintainability Score](https://img.shields.io/codeclimate/maintainability/ohseesoftware/laravel-analytics.svg?style=flat-square)](https://codeclimate.com/github/ohseesoftware/laravel-analytics)
7+
[![Downloads](https://img.shields.io/packagist/dt/ohseesoftware/laravel-analytics.svg?style=flat-square)](https://packagist.org/packages/ohseesoftware/laravel-analytics)
8+
[![MIT License](https://img.shields.io/github/license/ohseesoftware/laravel-analytics.svg?style=flat-square)](https://github.com/ohseesoftware/laravel-analytics/blob/master/LICENSE)
79

8-
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
10+
Server side analytics for your Laravel application or website. No cookies, no tracking :)
911

1012
## Installation
1113

composer.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.1",
20-
"illuminate/support": "5.8.*"
19+
"php": "^7.3",
20+
"illuminate/support": ">=6",
21+
"phpunit/phpunit": "^8.4"
2122
},
2223
"require-dev": {
23-
"orchestra/testbench": "3.8.*",
24-
"phpunit/phpunit": "^7.0"
24+
"orchestra/testbench": "4.4.*",
25+
"php-coveralls/php-coveralls": "^2.2",
26+
"squizlabs/php_codesniffer": "*"
2527
},
2628
"autoload": {
2729
"psr-4": {
@@ -36,7 +38,6 @@
3638
"scripts": {
3739
"test": "vendor/bin/phpunit",
3840
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
39-
4041
},
4142
"config": {
4243
"sort-packages": true

phpcs.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<description>Oh See Software PHPCS config.</description>
4+
<rule ref="PSR2">
5+
<exclude name="PSR1.Methods.CamelCapsMethodName"/>
6+
</rule>
7+
</ruleset>

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<logging>
2323
<log type="tap" target="build/report.tap"/>
2424
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
25+
<log type="coverage-html" target="build/coverage"/>
2626
<log type="coverage-text" target="build/coverage.txt"/>
2727
<log type="coverage-clover" target="build/logs/clover.xml"/>
2828
</logging>

0 commit comments

Comments
 (0)