Add a Travis-CI driver for github builds.

This commit is contained in:
Vassil Vassilev 2014-09-25 20:25:31 +02:00 committed by sftnight
parent 2c98c81895
commit 2b259522d9

52
.travis.yml Normal file
View File

@ -0,0 +1,52 @@
language: cpp
compiler:
- gcc
before_install:
- echo $LANG
- echo $LC_ALL
- sudo apt-get install python-software-properties
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get install gcc-4.8
- sudo apt-get install g++-4.8
- sudo apt-get install binutils-gold
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
before_script:
- mkdir src inst obj
- git clone https://github.com/vgvassilev/llvm.git src
- git clone https://github.com/vgvassilev/clang.git src/tools/clang
- git clone https://github.com/vgvassilev/cling.git src/tools/cling
- cd src
- cd ../obj
- travis_retry ../src/configure --prefix=`pwd`/../inst
script:
- travis_retry make -j4 -k
- cd tools/cling
- make test LIT_ARGS=--no-progress-bar
branches:
only:
- master
notifications:
recipients:
- vvasilev@cern.ch
- cling-dev@cern.ch
email:
on_success: change
on_failure: always
#irc:
#channels:
#- "chat.freenode.net#rubinius"
template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
os:
- linux
# - osx