Skip to content

Commit

Permalink
travis: use Java as language (exercism#82)
Browse files Browse the repository at this point in the history
Hypothesis: Faster and more reliable than using sdkman to install Java.
The Travis CI builds have shown that the install Java step takes about
14 seconds.
  • Loading branch information
petertseng authored Nov 26, 2018
1 parent 209508c commit 53c994e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
language: bash

language: java
jdk:
# Ceylon 1.3.3 is not ready for java 10 or 11:
# ceylon compile: invalid source release: 10
# ceylon compile: invalid source release: 11
# Ceylon 1.3.3 is not ready for java 9:
# ceylon format: Could not load module 'ceylon.formatter/1.3.3' because: com.
# redhat.ceylon.cmr.ceylon.loader.ModuleNotFoundException: Could not find module:
# javax.xml/7
# Try later version of Java when using a later version of Ceylon.
# Arbitrarily selected openjdk8 over oraclejdk8, they both work fine.
- openjdk8
install:
- bin/fetch-configlet
- curl -s https://get.sdkman.io | bash
- source $HOME/.sdkman/bin/sdkman-init.sh
- sdk list java
# Ceylon 1.3.3 is not ready for java 10 or 11:
# ceylon compile: invalid source release: 10
# ceylon compile: invalid source release: 11
# Ceylon 1.3.3 is not ready for java 9:
# ceylon format: Could not load module 'ceylon.formatter/1.3.3' because: com.
# redhat.ceylon.cmr.ceylon.loader.ModuleNotFoundException: Could not find module:
# javax.xml/7
# Try later version of Java when using a later version of Cyelon.
- sdk install java $(sdk list java | grep '^ *8\..*zulu' | head -1)
- sdk install ceylon
script:
- bin/configlet lint .
Expand Down

0 comments on commit 53c994e

Please sign in to comment.