forked from contiki-os/contiki
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ejoerns/contiki-current' into develop
Conflicts: Makefile.include core/sys/profiling.c core/sys/test.h cpu/avr/Makefile.avr examples/wsn/Makefile platform/inga/contiki-inga-main.c tools/profiling/profile-neat.py tools/profiling/test/test.py
- Loading branch information
Showing
3,062 changed files
with
184,590 additions
and
70,717 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
notifications: | ||
email: false | ||
language: c #NOTE: this will set CC=gcc which might cause trouble | ||
before_script: | ||
- "sudo apt-get -qq update" | ||
## Install these mainline toolchains for all build types | ||
- "sudo apt-get -qq install lib32z1 || true" | ||
- "curl -s \ | ||
http://adamdunkels.github.io/contiki-fork/mspgcc-4.7.0-compiled.tar.bz2 \ | ||
| tar xjf - -C /tmp/ && sudo cp -f -r /tmp/msp430/* /usr/local/ && rm -rf /tmp/msp430 && msp430-gcc --version || true" | ||
- "sudo apt-get -qq install gcc-avr avr-libc || true" | ||
- "sudo apt-get -qq install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 || true" | ||
|
||
## Install toolchain for mc1233x, cc2538 and mbxxx in care-free way | ||
- "[ ${BUILD_ARCH:-0} = arm ] && curl -s \ | ||
https://raw.github.com/wiki/malvira/libmc1322x/files/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" | ||
|
||
## Install SDCC from a purpose-built bundle | ||
- "[ ${BUILD_ARCH:-0} = 8051 ] && curl -s \ | ||
https://raw.github.com/wiki/g-oikonomou/contiki-sensinode/files/sdcc.tar.gz \ | ||
| tar xzf - -C /tmp/ && sudo cp -f -r /tmp/sdcc/* /usr/local/ && rm -rf /tmp/sdcc && sdcc --version || true" | ||
- "[ ${BUILD_ARCH:-0} = 8051 ] && sudo apt-get -qq install srecord || true" | ||
|
||
## Compile cooja.jar only when it's going to be needed | ||
- "[ ${BUILD_CATEGORY:-sim} = sim ] && 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 | ||
|
||
script: | ||
## regression-tests/Makefile handles most of generic logic | ||
- "make -C regression-tests/??-$BUILD_TYPE RUNALL=true summary" | ||
|
||
after_script: | ||
## Print cooja test logs | ||
- "[ ${BUILD_CATEGORY:-sim} = sim ] && tail regression-tests/??-$BUILD_TYPE/*.testlog" | ||
## Print a basic summary | ||
- "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary" | ||
- "FAILS=`grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary`" | ||
## This will detect whether the build should pass or fail | ||
- "test $FAILS -eq 0; exit $?" | ||
|
||
|
||
env: | ||
## This magically kick-off parallel jobs for each of the for the sets | ||
## of environment variable defined below | ||
- BUILD_TYPE='compile-base' BUILD_CATEGORY='compile' | ||
- BUILD_TYPE='collect' | ||
- BUILD_TYPE='collect-lossy' | ||
- BUILD_TYPE='rpl' | ||
- BUILD_TYPE='rime' | ||
- BUILD_TYPE='ipv6' | ||
- BUILD_TYPE='hello-world' | ||
- BUILD_TYPE='base' | ||
# XXX: netperf disabled b/c it's flaky | ||
# - BUILD_TYPE='netperf' MAKE_TARGETS='cooja' | ||
- BUILD_TYPE='shell' | ||
- BUILD_TYPE='elfloader' | ||
- BUILD_TYPE='ipv4' | ||
- BUILD_TYPE='ipv6-apps' | ||
- BUILD_TYPE='compile-8051-ports' BUILD_CATEGORY='compile' BUILD_ARCH='8051' | ||
- BUILD_TYPE='compile-arm-ports' BUILD_CATEGORY='compile' BUILD_ARCH='arm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Contiki is licensed under the 3-clause BSD license. This license gives | ||
everyone the right to use and distribute the code, either in binary or | ||
source code format, as long as the copyright license is retained in | ||
the source code. | ||
|
||
The copyright for different parts of the code is held by different | ||
people and organizations, but the code is licensed under the same type | ||
of license. The license text is: | ||
|
||
* Copyright (c) (Year), (Name of copyright holder) | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the copyright holder nor the names of its | ||
* contributors may be used to endorse or promote products derived | ||
* from this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
* OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
Oops, something went wrong.