forked from DILCISBoard/E-ARK-CSIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (35 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
dist: trusty
sudo: required
language: java
jdk:
- openjdk8
script:
- cd spec-publisher
- mvn clean package
- java -jar target/mets-profile-proc.jar ../profile/E-ARK-CSIP.xml
- cd ..
- docker run -it --rm -v "$PWD:/source" -u "$(id -u):$(id -g)" --entrypoint /source/create-site.sh eark4all/spec-pdf-publisher
- cd spec-publisher
- git stash
- git checkout feat/pdf-publication
- git pull
- mvn clean package
- java -jar target/mets-profile-proc.jar ../profile/E-ARK-CSIP.xml
- cd ..
- docker run -it --rm -v "$PWD:/source" -u "$(id -u):$(id -g)" --entrypoint /source/create-pdf.sh eark4all/spec-pdf-publisher
- mkdir site
- docker run -it --rm -v "$PWD"/docs:/usr/src/app -v "$PWD"/site:/_site -u "$(id -u):$(id -g)" starefossen/github-pages jekyll build -d /_site
- bundle install
- bundle exec htmlproofer ./site --file-ignore /javadoc/ --only-4xx --check-html
deploy:
provider: pages
skip_cleanup: true
github_token: "$GH_TOKEN"
keep_history: true
local_dir: site
fqdn: "$CNAME"
on:
branch: master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true