2012-11-12 23:26:17 +01:00
|
|
|
language: c #NOTE: this will set CC=gcc which might cause trouble
|
|
|
|
before_script:
|
2012-11-13 10:53:54 +01:00
|
|
|
- "sudo apt-get -qq update"
|
|
|
|
## Install these mainline toolchains for all build types
|
|
|
|
- "sudo apt-get -qq install gcc-msp430 || true"
|
|
|
|
- "sudo apt-get -qq install gcc-avr avr-libc || true"
|
2012-11-12 23:26:38 +01:00
|
|
|
## Install toolchain for mc1233x in care-free way
|
|
|
|
- "[ $BUILD_TYPE = multi ] && curl -s \
|
|
|
|
https://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/arm-2008q3-66-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 \
|
|
|
|
| tar xjf - -C /tmp/ && sudo cp -f -r /tmp/arm-2008q3/* /usr/ && rm -rf /tmp/arm-2008q3 && arm-none-eabi-gcc --version || true"
|
2012-11-13 01:07:04 +01:00
|
|
|
## Compile cooja.jar only when it's going to be needed
|
|
|
|
- "[ $BUILD_TYPE = cooja ] && java -version && ant -q -f tools/cooja/build.xml jar || true"
|
|
|
|
|
|
|
|
## IMPORTANT: The commands here have to end with `|| true`,
|
|
|
|
## because it would make the test fail if BUILD_TYPE test fails
|
2012-11-12 23:26:17 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
## The makefile called `.travis.mk` handles most of generic logic
|
|
|
|
- "make -f .travis.mk $MAKE_TARGETS"
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
## Print a basic summary in unix style
|
|
|
|
- "echo 'Summary:'; cat results | sort | uniq -c"
|
|
|
|
## This will detect whether the build should pass or fail
|
|
|
|
- "grep -v -q 'fail' results"
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
## This magically kick-off parallel jobs for each of the for the sets
|
|
|
|
## of environment variable defined below
|
2012-11-13 14:39:36 +01:00
|
|
|
- BUILD_TYPE='multi' MAKE_TARGETS='native minimal-net redbee-econotag sky micaz avr-raven'
|
2012-11-13 01:07:04 +01:00
|
|
|
- BUILD_TYPE='cooja' MAKE_TARGETS='cooja' TAIL=cat
|