Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
R. Eric Wheeler | f96d343f68 | |
R. Eric Wheeler | 35be8122e7 | |
R. Eric Wheeler | 7eaef72579 | |
R. Eric Wheeler | 3d3e8dbea4 | |
R. Eric Wheeler | ae9d13e093 | |
R. Eric Wheeler | 5178a762fe | |
R. Eric Wheeler | d2700af9e6 | |
R. Eric Wheeler | d5d8ed8f66 | |
R. Eric Wheeler | f54213b173 | |
R. Eric Wheeler | 7b567cadea |
|
@ -0,0 +1,47 @@
|
|||
# Select what we should cache between builds
|
||||
cache:
|
||||
paths:
|
||||
- vendor/
|
||||
|
||||
before_script:
|
||||
- apt-get update -yqq
|
||||
- apt-get install -yqq git unzip
|
||||
# Install PHP extensions
|
||||
# Install & enable Xdebug for code coverage reports
|
||||
- pecl install xdebug
|
||||
- docker-php-ext-enable xdebug
|
||||
# Install and run Composer
|
||||
- curl -sS https://getcomposer.org/installer | php
|
||||
- php composer.phar install
|
||||
|
||||
|
||||
# Set any variables we need
|
||||
variables:
|
||||
XDEBUG_MODE: coverage
|
||||
|
||||
# Run our tests
|
||||
# If Xdebug was installed you can generate a coverage report and see code coverage metrics.
|
||||
test:7.3:
|
||||
tags:
|
||||
- default
|
||||
image: php:7.3
|
||||
only:
|
||||
- 0.x@sikofitt/generate-mac
|
||||
script:
|
||||
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
|
||||
test:7.4:
|
||||
tags:
|
||||
- default
|
||||
image: php:7.4
|
||||
only:
|
||||
- 0.x@sikofitt/generate-mac
|
||||
script:
|
||||
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
|
||||
test:8.0:
|
||||
tags:
|
||||
- default
|
||||
image: php:8.0
|
||||
only:
|
||||
- branches
|
||||
script:
|
||||
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
|
|
@ -2,7 +2,13 @@
|
|||
|
||||
### Small library to generate unique private mac addresses
|
||||
|
||||
[![pipeline status](https://repos.bgemi.net/sikofitt/generate-mac/badges/1.x/pipeline.svg)](https://repos.bgemi.net/sikofitt/generate-mac/-/commits/1.x)
|
||||
[![coverage report](https://repos.bgemi.net/sikofitt/generate-mac/badges/1.x/coverage.svg)](https://repos.bgemi.net/sikofitt/generate-mac/-/commits/1.x)
|
||||
|
||||
#### Install
|
||||
|
||||
Requires PHP v8.0, For versions compatible with PHP >= 7.3 use the 0.x branch.
|
||||
|
||||
[composer](https://getcomposer.org)
|
||||
```bash
|
||||
composer require sikofitt/generate-mac
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"description": "Generates dummy mac addresses",
|
||||
"type": "library",
|
||||
"require": {
|
||||
"php": "^8.0",
|
||||
"php": "^8.2",
|
||||
"ext-json": "*",
|
||||
"ext-sodium": "*"
|
||||
},
|
||||
|
@ -13,10 +13,11 @@
|
|||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^2.18",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"symfony/console": "^5.2"
|
||||
"composer/xdebug-handler": "^3.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.17",
|
||||
"phpunit/phpunit": "^9.6",
|
||||
"squizlabs/php_codesniffer": "^3.7",
|
||||
"symfony/console": "^6.3"
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
|
|
Loading…
Reference in New Issue