Ubuntu Linux Build Environments
Overview #
This page gives an overview of the different Ubuntu Linux distributions you can use as your CI environment.
You can choose one of the following distributions:
- Ubuntu Noble 24.04 recommended
- Ubuntu Jammy 22.04 recommended
- Ubuntu Focal 20.04 recommended
- Ubuntu Bionic 18.04 deprecation warning, will be available for some time more
- Ubuntu Xenial 16.04 deprecated
- Ubuntu Trusty 14.04 deprecated
- Ubuntu Precise 12.04 deprecated
Ubuntu Linux Distributions #
To use our Ubuntu Linux build infrastructure, you can choose between the distributions above.
We use Ubuntu Focal 20.04 as default. You will find more about packages, tools and settings in Ubuntu Focal 20.04.
Use Ports #
Travis CI Linux build images do utilize default open ports as follows:
53 for dns,
22 for ssh,
323 for ntp,
68 for dhcp
On top of that, some of the services pre-installed in the build image or installed during execution of the build job execution as dependencies (e.g. database engine or docker) may occupy additional ports. Travis CI build image configurations do not override such defaults.
If, in any case, during a build job, you run into a situation a port you want to use is occupied/not available, please re-run the build using
following nestat call in your .travis.yml at the beginning of the script phase or directly before the step, which you suspect clashes over occupied ports.
script:
# select proper step in your build execution and add this line before it
- sudo netstat -tulpn
to show all open ports occupied during the build job runtime.
Use Focal #
To use Ubuntu Focal, add the following to your .travis.yml.
dist: focal
Travis CI also supports the Windows Build Environment and FreeBSD Build Environment.