Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Jan 21, 2020
2 parents a9315b6 + 94d939f commit 1e4f17e
Show file tree
Hide file tree
Showing 38 changed files with 3,795 additions and 2,769 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and test
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Dump PHP version
run: php -v

- name: Validate composer.json
run: composer validate --strict

- name: Lint all PHP files
run: composer run qa:lint

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v1
with:
path: vendor
key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Barrel API Client dependencies through Composer
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Get lines of code
run: composer run qa:phploc

- uses: actions/upload-artifact@v1
with:
name: phploc
path: build/artifacts/phploc/phploc.xml

- name: Run static code analyser
run: composer run qa:phpstan

- name: Run unit tests
run: composer run test:phpunit:coverage

- uses: actions/upload-artifact@v1
with:
name: PHPUnit Code Coverage report
path: build/artifacts/phpunit/coverage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ vendor
composer.phar
phpunit.xml
PHP_BitTorrent-*.tgz
.phpunit.result.cache
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

13 changes: 12 additions & 1 deletion ChangeLog.markdown → ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
Changelog for PHP BitTorrent
=====================
============================

Version 2.0.0
-------------
__2020-01-21__

* Use strict types
* Remove support for 32 bit platforms
* Bump PHP requirement from 5.3 to 7.2
* Change namespace from PHP\BitTorrent to BitTorrent
* Added method to check if the torrent is private (@stormwalkerec)
* Made `BitTorrent\Torrent` immutable

Version 1.1.0
-------------
Expand Down
4 changes: 1 addition & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
PHP BitTorrent

Copyright (c) 2011-2013, Christer Edvartsen <[email protected]>
Copyright (c) 2011-2020, Christer Edvartsen <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
Expand Down
83 changes: 0 additions & 83 deletions PHP/BitTorrent/DecoderInterface.php

This file was deleted.

145 changes: 0 additions & 145 deletions PHP/BitTorrent/Encoder.php

This file was deleted.

73 changes: 0 additions & 73 deletions PHP/BitTorrent/EncoderInterface.php

This file was deleted.

Loading

0 comments on commit 1e4f17e

Please sign in to comment.