Scripts to build ROOT distributions for use on Travis CI.
If your project relies on ROOT to run its tests, and you would like to run them on Travis CI, you need a way to install ROOT. However, Travis CI virtual machines, on which the tests run, have a limited lifetime, often too short to compile ROOT from source, and so an alternative method is needed.
To use the ROOT distributions in your Travis CI tests, see the Usage section.
Vagrant and VirtualBox are required to build the ROOT distributions supported by the repository. These are used to run a Ubuntu 12.04 LTS Server Edition 64 bit distribution, the same OS used on the Travis CI VMs.
To set up the VM, clone this repository and provision.
$ git clone https://github.com/alexpearce/travis-ci-root-builds.git
$ cd travis-ci-root-builds
$ vagrant up --provision
To build the ROOT distributions, SSH in to the VM and source the build script.
$ vagrant ssh
# Now on the Vagrant guest machine
$ . /vagrant/build
Each build can take a significant amount of time, upwards of 30 minutes.
A tarball for each build will be created in the /vagrant
folder, which in a
standard Vagrant install is shared with the host machine.
To use the builds in your tests, you need to add a few lines to the
.travis.yml
configuration file in the repository you want to test.
See the
rootpy
repository and its
.travis.yml
for an example.
There are publicly available builds on Sourceforge, but if you strongly depend on the availability of such builds, hosting them elsewhere might be a good idea.
The available builds are listed in the tables below:
-
| Python 2.6 | Python 2.7
-------------|---------------------------------------|----------------------------------------
ROOT 5.34.19 | ROOT-5.34.19_Python-2.6.tar.gz
| ROOT-5.34.19_Python-2.7.tar.gz
ROOT 5.34.25 | ROOT-5.34.25_Python-2.6.tar.gz
| ROOT-5.34.25_Python-2.7.tar.gz
ROOT 6.00.02 | ROOT-6.00.02_Python-2.6.tar.gz
| ROOT-6.00.02_Python-2.7.tar.gz
ROOT 6.02.04 | ROOT-6.02.04_Python-2.6.tar.gz
| ROOT-6.02.04_Python-2.7.tar.gz
ROOT 6.03.02 | ROOT-6.03.02_Python-2.6.tar.gz
| ROOT-6.03.02_Python-2.7.tar.gz
-
| Python 3.3 | Python 3.4
-------------|----------------------------------------|----------------------------------------
ROOT 5.34.25 | ROOT-5.34.25_Python-3.3.tar.gz
| ROOT-5.34.25_Python-3.4.tar.gz
ROOT 6.03.02 | ROOT-6.03.02_Python-3.3.tar.gz
| ROOT-6.03.02_Python-3.4.tar.gz