2015-09-16 09:37:51 +00:00
|
|
|
# Using container-based infrastructure
|
2017-06-16 00:47:11 +00:00
|
|
|
dist: trusty
|
2015-09-16 09:37:51 +00:00
|
|
|
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
|
2015-11-06 13:23:43 +00:00
|
|
|
- help2man
|
2017-06-16 00:47:11 +00:00
|
|
|
- g++
|
2015-09-16 09:37:51 +00:00
|
|
|
|
|
|
|
# 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
|
2015-10-22 00:57:23 +00:00
|
|
|
- CT_SAMPLE=arm-unknown-linux-musleabi
|
2017-07-07 19:42:08 +00:00
|
|
|
- CT_SAMPLE=aarch64-unknown-linux-gnu
|
2016-04-15 06:13:07 +00:00
|
|
|
- CT_SAMPLE=mips64el-multilib-linux-uclibc
|
2015-11-11 16:40:20 +00:00
|
|
|
- CT_SAMPLE=powerpc-e500v2-linux-gnuspe
|
|
|
|
- CT_SAMPLE=x86_64-unknown-linux-uclibc
|
2016-12-09 23:50:13 +00:00
|
|
|
- CT_SAMPLE=xtensa-fsf-linux-uclibc
|
2015-09-16 09:37:51 +00:00
|
|
|
|
|
|
|
# Building the standard samples
|
|
|
|
script:
|
2015-10-03 12:11:29 +00:00
|
|
|
- . ./.travis.sh # Load the travis environment
|
|
|
|
- ct-ng $CT_SAMPLE # Configure the build
|
|
|
|
- ct-ng_travis_build # Build the sample
|
2015-09-16 09:37:51 +00:00
|
|
|
|
|
|
|
# On failure displaying the last lines of the log file
|
|
|
|
after_failure:
|
2015-10-03 12:28:03 +00:00
|
|
|
- tail -n 1000 build.log
|