Skip to content
Permalink
Browse files

Updating parsers/tests, fixing phpstan error, adding automatic test (#…

…148)

* Updating parsers/tests, fixing phpstan error, adding automatic test

* fixing test command

* calling prepare instead of update, fixing php-get-browser update command if no version.txt file

* changing from shrinkwrap to package-lock

This isn't really necessary, just updating since I was in there. Not sure why this parser fails on travis.

* trying specifying node version, updating NPM in before_install

* Updating parser lock files

Mainly to see if device-detector-js-1 has been fixed.

* Updating parser/test lockfiles again, reverting the definition change for Compare command to short-hand style
  • Loading branch information...
jaydiablo committed Aug 23, 2019
1 parent edc7c90 commit 1c16030a2df28a8fad377ddb14541dc5b31bd3f5
Showing with 2,813 additions and 1,567 deletions.
  1. +8 −0 .travis.yml
  2. +7 −0 files/travis-test.txt
  3. +3 −3 parsers/bowser-js-2/npm-shrinkwrap.json
  4. +1 −1 parsers/bowser-js-2/package.json
  5. +7 −7 parsers/browscap-js-1/npm-shrinkwrap.json
  6. +1 −1 parsers/browscap-js-1/package.json
  7. +10 −10 parsers/browscap-js-2/npm-shrinkwrap.json
  8. +1 −1 parsers/browscap-js-2/package.json
  9. +7 −7 parsers/browscap-js-3/npm-shrinkwrap.json
  10. +1 −1 parsers/browscap-js-3/package.json
  11. +11 −11 parsers/browscap-js-4/npm-shrinkwrap.json
  12. +1 −1 parsers/browscap-js-4/package.json
  13. +17 −16 parsers/browscap-php-2/composer.lock
  14. +57 −52 parsers/browscap-php-3-full/composer.lock
  15. +57 −52 parsers/browscap-php-3-lite/composer.lock
  16. +57 −52 parsers/browscap-php-3-standard/composer.lock
  17. +220 −115 parsers/browscap-php-4-full/composer.lock
  18. +220 −115 parsers/browscap-php-4-lite/composer.lock
  19. +220 −115 parsers/browscap-php-4-standard/composer.lock
  20. +333 −147 parsers/browser-detector-php-5/composer.lock
  21. +17 −16 parsers/crossjoin-php-1/composer.lock
  22. +47 −42 parsers/crossjoin-php-2/composer.lock
  23. +47 −42 parsers/crossjoin-php-3/composer.lock
  24. +3 −3 parsers/detect-browser-js-4/npm-shrinkwrap.json
  25. +1 −1 parsers/detect-browser-js-4/package.json
  26. +7 −7 parsers/device-detector-js-1/npm-shrinkwrap.json
  27. +1 −1 parsers/device-detector-js-1/package.json
  28. +17 −16 parsers/donatj-php-0/composer.lock
  29. +17 −16 parsers/endorphin-php-3/composer.lock
  30. +247 −27 parsers/endorphin-php-4/composer.lock
  31. +3 −3 parsers/express-useragent-js/npm-shrinkwrap.json
  32. +1 −1 parsers/express-useragent-js/package.json
  33. +22 −21 parsers/jenssegers-agent-php-2/composer.lock
  34. +1 −1 parsers/php-get-browser/update.sh
  35. +23 −22 parsers/piwik-device-detector-php-3/composer.lock
  36. +17 −16 parsers/sinergi-php-6/composer.lock
  37. +22 −21 parsers/ua-parser-php-3/composer.lock
  38. +3 −3 parsers/uaparser-js-0/npm-shrinkwrap.json
  39. +1 −1 parsers/uaparser-js-0/package.json
  40. +17 −16 parsers/whichbrowser-php-2/composer.lock
  41. +3 −3 parsers/woothee-js-1/npm-shrinkwrap.json
  42. +1 −1 parsers/woothee-js-1/package.json
  43. +25 −25 parsers/woothee-php-1/composer.lock
  44. +5 −5 parsers/yzalis-php-0/composer.lock
  45. +17 −16 parsers/zsxsoft-php-1/composer.lock
  46. +3 −2 src/Command/Compare.php
  47. +221 −120 tests/browscap/composer.lock
  48. +339 −153 tests/browser-detector/composer.lock
  49. +23 −22 tests/curated/composer.lock
  50. +17 −16 tests/donatj/composer.lock
  51. +6 −6 tests/endorphin-3/composer.lock
  52. +212 −34 tests/endorphin-4/composer.lock
  53. +29 −28 tests/piwik/composer.lock
  54. +17 −16 tests/sinergi/composer.lock
  55. +29 −28 tests/ua-parser/composer.lock
  56. +1 −1 tests/ua-parser/npm-shrinkwrap.json
  57. +23 −22 tests/uaparserjs/composer.lock
  58. +3 −3 tests/uaparserjs/npm-shrinkwrap.json
  59. +1 −1 tests/uaparserjs/package.json
  60. +29 −28 tests/whichbrowser/composer.lock
  61. +28 −27 tests/woothee/composer.lock
  62. +11 −11 tests/yzalis/composer.lock
  63. +17 −16 tests/zsxsoft/composer.lock
@@ -3,6 +3,7 @@ sudo: false
dist: trusty

php: 7.2
node_js: 8

os: linux

@@ -24,6 +25,7 @@ before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- echo 'opcache.enable=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo 'opcache.enable_cli=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- travis_retry npm i -g npm

install:
- travis_retry composer install --optimize-autoloader --prefer-dist --no-progress --no-interaction --no-suggest -vv
@@ -33,6 +35,12 @@ script: skip

jobs:
include:
- stage: test
php: 7.2
script:
- ./bin/prepare
- yes '' | ./bin/console parse ./files/travis-test.txt --no-output

- stage: check coding style
php: 7.2
script:
@@ -0,0 +1,7 @@
Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Some generated files are not rendered by default. Learn more.

@@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"bowser": "^2.1.2"
"bowser": "^2.4.0"
}
}

Some generated files are not rendered by default. Learn more.

@@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"browscap-js": "^1.11.6000030"
"browscap-js": "^1.11.6000032"
}
}

Some generated files are not rendered by default. Learn more.

@@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"browscap-js": "^2.2.6000030"
"browscap-js": "^2.2.6000032"
}
}

Some generated files are not rendered by default. Learn more.

@@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"browscap-js": "^3.0.6000030"
"browscap-js": "^3.0.6000032"
}
}

Some generated files are not rendered by default. Learn more.

@@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"browscap-js": "^4.0.6000030"
"browscap-js": "^4.0.6000032"
}
}

Some generated files are not rendered by default. Learn more.

0 comments on commit 1c16030

Please sign in to comment.
You can’t perform that action at this time.