forked from pkp/plugin-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
16 lines (14 loc) · 797 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
language: node_js
node_js:
- node
before_install:
# install dependencies
- travis_retry sudo apt-get update -qq
# install libxml2-utils which contains xmllint that we will use to validate XML against schema)
- travis_retry sudo apt-get install libxml2-utils
- npm install -g pkp-plugin-cli
script:
- xmllint --schema http://pkp.sfu.ca/ojs/xml/plugins.xsd ./plugins.xml --noout
- if [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_BRANCH == 'main' ]]; then pkp-plugin validate-all-releases --input $TRAVIS_BUILD_DIR/plugins.xml; fi
- if [ $TRAVIS_PULL_REQUEST != 'false' ]; then pkp-plugin validate-new-release; fi
- if [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_BRANCH == 'main' ]]; then GITHUB_TOKEN=$GITHUB_TOKEN pkp-plugin generate-site $TRAVIS_BUILD_DIR/plugins.xml; fi