-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
41 lines (41 loc) · 1.47 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
dist: bionic
language: clojure
lein: 2.9.10
jobs:
include:
# The OpenJDK versions used by Travis are pretty old, which causes
# problems with some of the tests. This pulls in a semi-recent version
# from the Ubuntu repos.
- name: jdk8
before_install:
- sudo rm -rf /usr/local/lib/jvm/
- sudo rm -rf /usr/lib/jvm/openjdk-8
- sudo apt-get install -y openjdk-8-jdk-headless
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
script:
- lein with-profile dev test
#- # same as previous stage
# script: lein with-profile fips test
# jdk: openjdk8
- name: jdk11
before_install:
- sudo rm -rf /usr/local/lib/jvm/
- sudo rm -rf /usr/lib/jvm/openjdk-11
- sudo apt-get install -y openjdk-11-jdk-headless
- export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
script:
- lein with-profile dev test
#- # same as previous stage
# script: lein with-profile fips test
# jdk: openjdk11
sudo: false
# Java needs to be able to resolve its hostname when doing integration style
# tests, which it cannot do in certain cases with travis-ci. If we need the
# runtime/container to be able to resolve its own hostname we need to use
# either the `hostname` or `hosts` "addon" for travis. Since we don't care
# what the hostname is, here we just give it a garbage name based on the name
# of the project.
addons:
hostname: cljhttpclient
notifications:
email: false