2017-11-15 22:00:13 +00:00
|
|
|
# Setup environment for Docker
|
|
|
|
language: generic
|
|
|
|
services: docker
|
2017-11-05 20:47:39 +00:00
|
|
|
|
2013-01-10 07:16:20 +00:00
|
|
|
notifications:
|
2017-11-15 22:00:13 +00:00
|
|
|
- email: false
|
2014-11-18 16:43:38 +00:00
|
|
|
|
2017-11-15 22:00:13 +00:00
|
|
|
before_install:
|
|
|
|
# Environment setup before test script
|
|
|
|
- export CNG_HOST_PATH=`pwd`
|
|
|
|
- export DOCKER_IMG='simonduq/contiki-ng:latest'
|
|
|
|
- sudo chgrp -hR 1000 $CNG_HOST_PATH
|
|
|
|
- docker pull $DOCKER_IMG
|
|
|
|
- ant -q -f $CNG_HOST_PATH/tools/cooja/build.xml jar
|
|
|
|
|
|
|
|
script: # The test script for each build.
|
2018-03-02 15:45:05 +00:00
|
|
|
- docker run --privileged -v $CNG_HOST_PATH:/home/user/contiki-ng -ti $DOCKER_IMG bash --login -c "make -C tests/??-$TEST_NAME";
|
2017-11-15 22:00:13 +00:00
|
|
|
# Check outcome of the test
|
|
|
|
- $CNG_HOST_PATH/tests/check-test.sh $CNG_HOST_PATH/tests/??-$TEST_NAME; exit $?;
|
2012-11-12 22:26:17 +00:00
|
|
|
|
|
|
|
env:
|
2017-11-15 22:00:13 +00:00
|
|
|
# Parallel builds
|
|
|
|
- TEST_NAME='compile-base'
|
|
|
|
- TEST_NAME='compile-arm-ports-01'
|
|
|
|
- TEST_NAME='compile-arm-ports-02'
|
|
|
|
- TEST_NAME='rpl-lite'
|
|
|
|
- TEST_NAME='rpl-classic'
|
|
|
|
- TEST_NAME='tun-rpl-br'
|
2017-11-29 21:53:55 +00:00
|
|
|
- TEST_NAME='coap-lwm2m'
|
2017-11-15 22:00:13 +00:00
|
|
|
- TEST_NAME='simulation-base'
|
|
|
|
- TEST_NAME='ieee802154'
|
|
|
|
- TEST_NAME='compile-nxp-ports'
|
|
|
|
- TEST_NAME='doxygen'
|
|
|
|
- TEST_NAME='compile-tools'
|
2017-12-12 23:54:34 +00:00
|
|
|
- TEST_NAME='native-runs'
|
2018-03-26 18:51:02 +00:00
|
|
|
- TEST_NAME='ipv6'
|