Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Begin recognising elements and attributes #1

Merged
merged 12 commits into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.phpcs-cache
/phpcs.xml
/phpstan.neon
/phpunit.xml
/vendor/
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
language: php

php: 7.3

before_install:
- phpenv config-rm xdebug.ini || true

install:
- travis_retry composer install --classmap-authoritative --no-suggest --prefer-dist

jobs:
include:

- stage: Test
name: Tests
script:
- vendor/bin/phpunit

- stage: Code Quality
name: Coding standards
script:
- vendor/bin/phpcs -p

- stage: Code Quality
name: Static analysis
script:
- vendor/bin/phpstan analyse

stages:
- Test
- name: Code Quality
if: type = pull_request

cache:
directories:
- $HOME/.composer/cache/files

if: |
branch = master OR \
branch =~ /^(?:[0-9]|[1-9][0-9]*)\.(?:[0-9]|[1-9][0-9]*)$/ OR \
tag IS present OR \
type = pull_request
43 changes: 43 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"type": "project",
"license": "MIT",
"autoload-dev": {
"psr-4": {
"tests\\Libero\\JatsSupport\\": "tests/"
}
},
"require-dev": {
"php": "^7.3",
"ext-dom": "*",
"ext-xsl": "*",
"fluentdom/fluentdom": "^7.1",
"jats/schema": "^1.1",
"libero/coding-standard": "^0.4.0",
"libero/xml-validator": "^0.2",
"lstrojny/functional-php": "^1.9",
"phpstan/phpstan": "^0.11.2",
"phpstan/phpstan-phpunit": "^0.11.0",
"phpunit/phpunit": "^8.0",
"symfony/finder": "^4.2"
},
"config": {
"platform": {
"php": "7.3.0"
},
"secure-http": false,
"sort-packages": true
},
"repositories": [
{
"type": "package",
"package": {
"name": "jats/schema",
"version": "1.1",
"dist": {
"url": "ftp://ftp.ncbi.nih.gov/pub/jats/archiving/1.1/rng/JATS-Archiving-1-1-MathML3-DTD-RNG.zip",
"type": "zip"
}
}
}
]
}
Loading