Ubuntu 20.04 (Focal Fossa) build environment is available!

We are delighted to announce that we now support Ubuntu Focal Fossa 20.04 images to power your builds. To save your time, here are some quick facts to get you started.

Focal Fossa!

To run builds on Focal, add the following to your .travis.yml:

dist: focal

Probably you already know this but let’s reassure - we have unified our Linux build environment into a single infrastructure with different images, Ubuntu Focal Fossa 20.04 LTS is only available in our fully virtualized environment to which your Xenial builds will be automatically routed.

Another aspect to be highlighted - since Xenial we have disabled most of the services to start automatically. We observed that starting all third party services compromised booting time. You can always include any particular service you need to run in your config file or otherwise enjoy a speedy environment. If you need to start a service like MySQL or Redis, just add the reference to your .travis.yml:

  - mysql
  - redis

And one more thing - third-party apt repositories are also removed. This is for keeping things clean and reliable. It also ensures a faster apt-get update process. However, if your build relies on third-party repositories, you can always add them to your build config under the addons.apt key.

For example, to update redis-server using PPA, add ppa:chris-lea/redis-server to apt-get redis-tools and redis-server:

    - sourceline: 'ppa:chris-lea/redis-server'
    - redis-tools
    - redis-server

Here’s a brief summary of what’s installed by default in our Focal images:

  • Docker 19.03.8
  • docker-compose 1.23.1
  • Node.js 4.9.1, 6.17.1, 8.9, 8.17.0, 10.16.0, 10.22.0, 12.7.0 and 12.18.3 with nvm 0.35.3
  • Python 3.6.10 and 3.8.2
  • Ruby 2.5.7, 2.5.8, 2.6.5, 2.6.6, 2.7.0 and 2.7.1 with rvm 1.29.10
  • Go 1.11.1 with gimme 1.5.4
  • PHP 7.4.6 with phpenv/rbenv `1.1.2
  • Java 10 and Java 11 (and common builds tools: gradle, maven, groovy)
  • PostgreSQL 12.2
  • MySQL 8.0.21
  • MongoDB 3.6.9
  • Redis 6.0.6

You can find the specific versions of what’s pre-installed in the Focal Reference docs.

Following today’s release, we’ll incorporate your feedback for the Ubuntu Focal Fossa 20.04 image on a weekly basis during the next two months so that bug fixes and any improvements get into the image as soon as possible.

After this period of weekly updates to Focal, we’re expecting to generate a stable, tagged, Ubuntu Focal version by mid-September 2020. We’ll make sure to let you know here and in our docs once it’s available.

If you are running an Enterprise installation and interested in trying this out, please reach out to enterprise@travis-ci.com to see how you can use the Focal images in your setup.

If there’s anything you’d like to see improved or if you notice any bugs or inconsistencies, please let us know in the Community Forum: Focal.

That’s it! Let’s build awesome software together!