Skip to content

Commit

Permalink
Switch travis to jobs format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Mar 12, 2019
1 parent 706fcff commit c7076bd
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
language: java
jdk:
- oraclejdk8
env:
- DITA_OT=3.2
- DITA_OT=2.5.4

before_install:
- zip -r com.here.validate.svrl.text-rules.zip . -x *.zip* *.git/* *temp/* *out/*
Expand All @@ -16,12 +13,22 @@ install:
- dita-ot-$DITA_OT/bin/dita --install https://github.com/jason-fox/com.here.validate.svrl/archive/master.zip
- dita-ot-$DITA_OT/bin/dita --install com.here.validate.svrl.text-rules.zip

before_script:
- dita-ot-$DITA_OT/bin/dita --input dita-ot-$DITA_OT/plugins/com.here.validate.svrl.text-rules -f xsl-instrument

script:
- travis_wait dita-ot-$DITA_OT/bin/dita --input dita-ot-$DITA_OT/plugins/com.here.validate.svrl.text-rules -f unit-test --output . -v

after_success:
- cp dita-ot-$DITA_OT/plugins/fox.jason.unit-test/resource/pom.xml pom.xml
- mvn clean org.eluder.coveralls:coveralls-maven-plugin:report
jobs:
include:
- stage: test
name: "Unit Tests: DITA_OT=3.3"
env: DITA_OT=3.3

before_script:
- dita-ot-$DITA_OT/bin/dita --input dita-ot-$DITA_OT/plugins/com.here.validate.svrl.text-rules -f xsl-instrument

after_success:
- cp dita-ot-$DITA_OT/plugins/fox.jason.unit-test/resource/pom.xml pom.xml
- mvn clean org.eluder.coveralls:coveralls-maven-plugin:report

- stage: test
name: "Unit Tests: DITA_OT=2.5.4"
env: DITA_OT=2.5.4

0 comments on commit c7076bd

Please sign in to comment.