Rtos API example

Committer:
marcozecchini
Date:
Sat Feb 23 12:13:36 2019 +0000
Revision:
0:9fca2b23d0ba
final commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
marcozecchini 0:9fca2b23d0ba 1 python:
marcozecchini 0:9fca2b23d0ba 2 - "2.7"
marcozecchini 0:9fca2b23d0ba 3 script:
marcozecchini 0:9fca2b23d0ba 4 - mkdir BUILD
marcozecchini 0:9fca2b23d0ba 5 # Assert that the Doxygen build produced no warnings.
marcozecchini 0:9fca2b23d0ba 6 # The strange command below asserts that the Doxygen command had an
marcozecchini 0:9fca2b23d0ba 7 # output of zero length
marcozecchini 0:9fca2b23d0ba 8 - |
marcozecchini 0:9fca2b23d0ba 9 doxygen doxyfile_options 2>&1 | tee BUILD/doxygen.out && [ ! -s BUILD/doxygen.out ]
marcozecchini 0:9fca2b23d0ba 10 # Assert that all binary libraries are named correctly
marcozecchini 0:9fca2b23d0ba 11 # The strange command below asserts that there are exactly 0 libraries that do
marcozecchini 0:9fca2b23d0ba 12 # not start with lib
marcozecchini 0:9fca2b23d0ba 13 - |
marcozecchini 0:9fca2b23d0ba 14 find "(" -name "*.a" -or -name "*.ar" ")" -and -not -name "lib*" | tee BUILD/badlibs | sed -e "s/^/Bad library name found: /" && [ ! -s BUILD/badlibs ]
marcozecchini 0:9fca2b23d0ba 15 # Assert that all assebler files are named correctly
marcozecchini 0:9fca2b23d0ba 16 # The strange command below asserts that there are exactly 0 libraries that do
marcozecchini 0:9fca2b23d0ba 17 # end with .s
marcozecchini 0:9fca2b23d0ba 18 - |
marcozecchini 0:9fca2b23d0ba 19 find -name "*.s" | tee BUILD/badasm | sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
marcozecchini 0:9fca2b23d0ba 20 - make -C events/equeue test clean
marcozecchini 0:9fca2b23d0ba 21 - PYTHONPATH=. coverage run -a -m pytest tools/test
marcozecchini 0:9fca2b23d0ba 22 - python2 tools/test/pylint.py
marcozecchini 0:9fca2b23d0ba 23 - coverage run -a tools/project.py -S
marcozecchini 0:9fca2b23d0ba 24 - python2 tools/build_travis.py
marcozecchini 0:9fca2b23d0ba 25 - coverage html
marcozecchini 0:9fca2b23d0ba 26 after_success:
marcozecchini 0:9fca2b23d0ba 27 - coveralls
marcozecchini 0:9fca2b23d0ba 28 before_install:
marcozecchini 0:9fca2b23d0ba 29 - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
marcozecchini 0:9fca2b23d0ba 30 - sudo add-apt-repository -y ppa:libreoffice/libreoffice-4-2
marcozecchini 0:9fca2b23d0ba 31 - sudo apt-get update -qq
marcozecchini 0:9fca2b23d0ba 32 - sudo apt-get install -qq gcc-arm-embedded doxygen --force-yes
marcozecchini 0:9fca2b23d0ba 33 # Print versions we use
marcozecchini 0:9fca2b23d0ba 34 - arm-none-eabi-gcc --version
marcozecchini 0:9fca2b23d0ba 35 - python --version
marcozecchini 0:9fca2b23d0ba 36 - doxygen --version
marcozecchini 0:9fca2b23d0ba 37 install:
marcozecchini 0:9fca2b23d0ba 38 - pip install --user -r requirements.txt
marcozecchini 0:9fca2b23d0ba 39 - pip install --user pytest
marcozecchini 0:9fca2b23d0ba 40 - pip install --user pylint
marcozecchini 0:9fca2b23d0ba 41 - pip install --user hypothesis
marcozecchini 0:9fca2b23d0ba 42 - pip install --user mock
marcozecchini 0:9fca2b23d0ba 43 - pip install --user coverage
marcozecchini 0:9fca2b23d0ba 44 - pip install --user coveralls