Setting up Travis CI Enterprise 2.x

Travis CI Enterprise works with your or GitHub Enterprise (Enterprise Server below version 3.4) setup. Please also note the Travis CI Enterprise 2.x is EOL, so we are strongly recommending an upgrade to Travis CI Enterprise 3.x.

Prerequisites #

  • A valid Travis CI Enterprise license or trial license. If you’re interested in using High Availability, please let us know so we can get your trial license configured.

  • At least two virtual machines on your private cloud that meet the system requirements
  • The secret and clientid of a or GitHub Enterprise OAuth application configured with:

    • Homepage URL - https://<your-travis-ci-enterprise-domain>
    • Authorization callback URL - https://<your-travis-ci-enterprise-domain>/api + URLs must include https or http at the beginning and cannot have trailing slashes.

System Requirements #

The standard setup consists of the Travis CI Enterprise Platform which hosts the web UI and related services, and one or more Worker hosts which run the tests/jobs in isolated containers using LXC and Docker.

Each dedicated host or hypervisor (VMWare, OpenStack using KVM, or EC2) should run Ubuntu 16.04, ideally using Linux 3.16 and have at least 16 gigs of RAM and 8 CPUs.

If you’re running on EC2, we recommend the c4.2xlarge instance type for both Platform and Worker. We also recommend using an image that uses EBS for the root volume, as well as allocating 40 gigs of space to it.

For high availability (HA) configurations, you will also need:

You can also try services like, if you would like these services hosted outside your organization.

1. Setting up Enterprise Platform virtual machine #

The Travis CI Enterprise Platform handles licensing, coordinates worker processes, and maintains the Enterprise user and admin dashboard. It must be installed on it’s own machine instance, separate from that of the Travis CI Enterprise worker. We recommend using AWS’ c4.2xlarge instance running Ubuntu 16.04 LTS or later as the underlying operating system.

  1. On your virtual machine management platform, create a Travis CI Platform Security Group.

    If you’re setting up your AMI for the first time, you need to create a Security Group. From the EC2 management console, create an entry for each port in the table below:

    Port Service Description
    8800 Custom TCP Rule This port is to access the admin dashboard for your Enterprise installation.
    5672 Custom TCP Rule For RabbitMQ Non-SSL.
    4567 Custom TCP Rule For RabbitMQ SSL.
    443 HTTPS Web application over HTTPS access.
    80 HTTP Web application access.
    22 SSH SSH access.
  2. If you’re using a hostname and not just an IP address, this would be a time to configure it.

  3. On your new virtual machine, download and run the installation script:

     curl -sSL -o /tmp/
     sudo bash /tmp/
  4. In your browser, navigate to https://<your-travis-ci-enterprise-domain>:8800 (your Enterprise installation’s hostname, port 8800) to complete the setup:

    1. Add a secure certificate or configure a trusted one.
    2. Upload your Travis CI Enterprise license.
    3. Configure access to the Admin Console with a password or using openLDAP. This controls access to the Admin Console itself, not to the Travis CI Enterprise instance.
    4. Connect your GitHub Enterprise or with Travis CI enterprise.
    5. Optionally, configure Email, Metrics and Caches.
    6. Copy the RabbitMQ password for the Worker setup.

If you have decided to use a self-signed certificate, there may be additional configuration steps required. Please see our page on SSL Certificate Management for more information.

2. Setting up the Enterprise Worker virtual machine #

The Travis CI Enterprise Worker manages build containers and reports build statuses back to the platform. It must be installed on a separate machine instance from the Platform. We recommend using instance running Ubuntu 16.04 LTS or later as the underlying operating system.

Make sure you have already set up the Enterprise Platform and have the RabbitMQ password and the hostname from the Platform Dashboard.

After that, follow instructions to set up a Worker.

3. Running builds! #

Skip over to the Getting Started Guide and connect some repositories to your new Travis CI Setup!