2015-09-16 09:37:51 +00:00
|
|
|
# Using container-based infrastructure
|
|
|
|
sudo: false
|
|
|
|
|
2015-09-23 19:30:59 +00:00
|
|
|
# 'bash' will define a generic environment without interfering environment
|
|
|
|
# settings like "CC=gcc"
|
|
|
|
language: bash
|
2015-09-16 09:37:51 +00:00
|
|
|
|
|
|
|
# Only build the master branch
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2015-09-23 19:30:59 +00:00
|
|
|
# Caching the downloaded src packages between several builds to save travis-ci
|
|
|
|
# download time and bandwidth
|
2015-09-16 09:37:51 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/src
|
|
|
|
|
|
|
|
# Installing needed dependencies
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- bison
|
|
|
|
- flex
|
|
|
|
- gperf
|
|
|
|
- libncurses5-dev
|
|
|
|
- texinfo
|
|
|
|
|
|
|
|
# Building crosstool-NG core
|
|
|
|
install:
|
|
|
|
- ./bootstrap
|
|
|
|
- ./configure --enable-local
|
|
|
|
- make
|
|
|
|
|
|
|
|
# Here is the list of all the standard samples tracked
|
|
|
|
# by the continuous integration system
|
|
|
|
env:
|
|
|
|
- CT_SAMPLE=arm-unknown-eabi
|
|
|
|
- CT_SAMPLE=armeb-unknown-eabi
|
|
|
|
- CT_SAMPLE=arm-unknown-linux-gnueabi
|
|
|
|
- CT_SAMPLE=armeb-unknown-linux-gnueabi
|
|
|
|
|
|
|
|
# Building the standard samples
|
|
|
|
script:
|
|
|
|
- ./ct-ng $CT_SAMPLE
|
|
|
|
- CT_LOG_DEBUG=y CT_LOG_LEVEL_MAX="DEBUG" ./ct-ng build.2
|
|
|
|
|
|
|
|
# On failure displaying the last lines of the log file
|
|
|
|
after_failure:
|
|
|
|
- tail -n 200 build.log
|
2015-09-23 19:30:59 +00:00
|
|
|
|