<commit_before>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 gcc-msp430 || true"
  - "sudo apt-get -qq install gcc-avr avr-libc || true"
  ## Install toolchain for mc1233x in care-free way
  - "[ $BUILD_TYPE = compile ] && 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"
  ## Compile cooja.jar only when it's going to be needed
  - "[ $MAKE_TARGETS = 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

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
  - "test `grep -c 'fail' results` -eq 0"


env:
  ## This magically kick-off parallel jobs for each of the for the sets
  ## of environment variable defined below
  - BUILD_TYPE='compile' MAKE_TARGETS='native minimal-net econotag sky micaz avr-raven'
  - BUILD_TYPE='ipv6' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='collect-lossy' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='collect-sky' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='collect' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='helloworld' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='base' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='rime' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='netperf' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='sky-shell' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='elfloader' MAKE_TARGETS='cooja' TAIL=cat
  - BUILD_TYPE='ipv6-apps' MAKE_TARGETS='cooja' TAIL=cat
<commit_msg>travis integration of the Thingsquare Mist regression test framework<commit_after>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 gcc-msp430 || true"
  - "sudo apt-get -qq install gcc-avr avr-libc || true"
  ## Install toolchain for mc1233x in care-free way
  - "[ $BUILD_TYPE = compile ] && 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"
  ## Compile cooja.jar only when it's going to be needed
  - "[ $MAKE_TARGETS = 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

script:
  ## The makefile called `.travis.mk` handles most of generic logic
  - "make -C regression-tests/??-$BUILD_TYPE RUNALL=true summary"

after_script:
  ## Print a basic summary in unix style
  - "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary"
  ## This will detect whether the build should pass or fail
  - "test `grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary` -eq 0"


env:
  ## This magically kick-off parallel jobs for each of the for the sets
  ## of environment variable defined below
  - BUILD_TYPE='compile'
  - BUILD_TYPE='collect' MAKE_TARGETS='cooja'
  - BUILD_TYPE='rpl' MAKE_TARGETS='cooja'
  - BUILD_TYPE='rime' MAKE_TARGETS='cooja'
  - BUILD_TYPE='ipv6' MAKE_TARGETS='cooja'
  - BUILD_TYPE='hello-world' MAKE_TARGETS='cooja'
  - BUILD_TYPE='base' MAKE_TARGETS='cooja'
  - BUILD_TYPE='netperf' MAKE_TARGETS='cooja'
  - BUILD_TYPE='shell' MAKE_TARGETS='cooja'
  - BUILD_TYPE='elfloader' MAKE_TARGETS='cooja'
  - BUILD_TYPE='ipv4' MAKE_TARGETS='cooja'
  - BUILD_TYPE='ipv6-apps' MAKE_TARGETS='cooja'

{'fraction_non_alphanumeric': 0.13381642512077294, 'fraction_numerical': 0.015217391304347827, 'mean_word_length': 3.748853211009174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1938642', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1513, 'n_words': 406}