forked from prushforth/validator-mapml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (51 loc) · 2.04 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: java
git:
depth: 5
submodules: false # we do this ourselves later with `build.py update`
matrix:
include:
- jdk: oraclejdk8
env: PYTHON=python2
- jdk: oraclejdk8
env: PYTHON=python3
- jdk: oraclejdk9
env: PYTHON=python3
- jdk: openjdk10
env: PYTHON=python3
- jdk: openjdk11
env: PYTHON=python3
install:
- export TOMCAT_VERSION=8.5.29
- export BUILD_PY=./build/build.py
- $PYTHON $BUILD_PY update-shallow
- travis_retry $PYTHON $BUILD_PY dldeps
script:
- $PYTHON --version
- travis_retry $PYTHON $BUILD_PY build
- $PYTHON $BUILD_PY check
- $PYTHON $BUILD_PY test
- $PYTHON $BUILD_PY jar
- java -jar ./build/dist/vnu.jar ./build/dist/index.html
- java -jar ./build/dist/vnu.jar ./site/nu-about.html
- jar xf ./build/dist/vnu.jar && file nu/validator/client/SimpleCommandLineValidator.class | grep "version 52.0"
- $PYTHON $BUILD_PY war
- jar xf ./build/dist/vnu.war && file WEB-INF/classes/nu/validator/servlet/VerifierServlet.class | grep "version 52.0"
- curl -O http://archive.apache.org/dist/tomcat/tomcat-8/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.zip
- unzip apache-tomcat-$TOMCAT_VERSION.zip
- chmod a+x apache-tomcat-$TOMCAT_VERSION/bin/*.sh
- apache-tomcat-$TOMCAT_VERSION/bin/catalina.sh start
- cp ./build/dist/vnu.war apache-tomcat-$TOMCAT_VERSION/webapps/
- timeout --preserve-status 15s tail -f apache-tomcat-$TOMCAT_VERSION/logs/catalina.out || true
- curl -sS 'http://localhost:8080/vnu/?out=gnu&doc=data:text/html;charset=utf-8,%3C%21doctype%20html%3E%3Cmeta%20charset%3Dutf-8%3E%3Ctitle%3ETest%3C%2Ftitle%3E' > RESULTS
- test -z "$(if [ -t RESULTS ]; then cat RESULTS | grep -v '^$'; fi)"
- if [ $? != 0 ]; then cat RESULTS; fi
cache:
directories:
- dependencies
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/0b2024df5e6f10f19952
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false