Skip to content

Commit

Permalink
Use pkp npm package to extract releases data (#5)
Browse files Browse the repository at this point in the history
Move the node and bash scripts used for extracting the release data and validating the MD5 hashes into the pkp-plugin npm package, and use the package here to perform validation in CI. This keeps repo clean and concentrating about hosting the plugins.xml and we can change the validation internals transparently without affecting this CI build process.
  • Loading branch information
kabaros authored Apr 17, 2020
1 parent 7b541f6 commit a191021
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 122 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ before_install:

script:
- xmllint --schema http://pkp.sfu.ca/ojs/xml/plugins.xsd ./plugins.xml --noout
- mkdir out && node ./scripts/extractPluginReleaseData.js
- bash ./scripts/checkMD5.sh < ./out/packages-md5sums.txt
- npm install pkp-plugin-cli
- pwd
- ls ~
- node ./node_modules/pkp-plugin-cli validate-releases --input $TRAVIS_BUILD_DIR/plugins.xml --output $TRAVIS_BUILD_DIR/plugins-output.txt
75 changes: 67 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions package.json

This file was deleted.

Loading

0 comments on commit a191021

Please sign in to comment.