Skip to content

Commit

Permalink
Upgrade Travis CI to use Ubuntu 20.04 and fix warnings/caching (openh…
Browse files Browse the repository at this point in the history
…ab#8443)

Upgrades the Travis CI build environment to Ubuntu 20.04 (Focal Fossa).

Also fixes the following Travis configuration validation warnings:

* deprecated key sudo (The key `sudo` has no effect anymore.)
* missing os, using the default linux

Removes $HOME/.bnd/cache which does not exist after builds.

It's also no longer necessary to disable IPv6 with builds.
This was an actual issue in the hueemulation add-on which was fixed by openhab#7305.

Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn authored Sep 10, 2020
1 parent 345907d commit 8417cb1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
sudo: required
dist: bionic
os: linux
dist: focal

language: java

jdk: openjdk11

cache:
directories:
- $HOME/.m2
- $HOME/.bnd/cache/

before_cache:
# remove resolver-status.properties, they change with each run and invalidate the cache
- find $HOME/.m2 -name resolver-status.properties -exec rm {} \;

before_script:
# enable IPv6, see: https://github.com/travis-ci/travis-ci/issues/8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi

notifications:
webhooks: https://www.travisbuddy.com/

Expand Down

0 comments on commit 8417cb1

Please sign in to comment.