summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..e175024
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,51 @@
+# Using container-based infrastructure
+sudo: false
+
+# 'bash' will define a generic environment without interfering environment
+# settings like "CC=gcc"
+language: bash
+
+# Only build the master branch
+branches:
+ only:
+ - master
+
+# Caching the downloaded src packages between several builds to save travis-ci
+# download time and bandwidth
+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:
+ - . ./.travis.sh # Load the travis environment
+ - ct-ng $CT_SAMPLE # Configure the build
+ - ct-ng_travis_build # Build the sample
+
+# On failure displaying the last lines of the log file
+after_failure:
+ - tail -n 1000 build.log