Skip to content

Commit

Permalink
Upgrade Travis CI to use Ubuntu 18.04 and fix warnings/caching (#8442)
Browse files Browse the repository at this point in the history
Upgrades the Travis CI build environment to Ubuntu 18.04 (Bionic Beaver).
The openjdk8 package is unsupported in newer Ubuntu versions.

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 #7305.

Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn authored Sep 10, 2020
1 parent 21deeaa commit 934dde8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: required
dist: xenial
os: linux
dist: bionic

language: java

Expand All @@ -10,18 +10,11 @@ jdk:
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 934dde8

Please sign in to comment.