@@ -26,7 +26,6 @@ before_install:
26
26
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
27
27
# Setup ppa to make sure arm-none-eabi-gcc is correct version
28
28
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
29
- - sudo add-apt-repository -y ppa:libreoffice/libreoffice-4-2
30
29
- sudo apt-get update -qq
31
30
32
31
after_success :
@@ -37,12 +36,44 @@ after_failure:
37
36
38
37
matrix :
39
38
include :
39
+ - python : ' 2.7'
40
+ env :
41
+ - NAME=docs
42
+ install :
43
+ # Install dependencies
44
+ - sudo apt-get install doxygen
45
+ # Print versions we use
46
+ - doxygen --version
47
+ before_script :
48
+ # Create BUILD directory for tests
49
+ - mkdir BUILD
50
+ script :
51
+ # Assert that the Doxygen build produced no warnings.
52
+ # The strange command below asserts that the Doxygen command had an
53
+ # output of zero length
54
+ - >
55
+ doxygen doxyfile_options 2>&1 |
56
+ tee BUILD/doxygen.out && [ ! -s BUILD/doxygen.out ]
57
+ # Assert that all binary libraries are named correctly
58
+ # The strange command below asserts that there are exactly 0 libraries
59
+ # that do not start with lib
60
+ - >
61
+ find "(" -name "*.a" -or -name "*.ar" ")" -and -not -name "lib*" |
62
+ tee BUILD/badlibs |
63
+ sed -e "s/^/Bad library name found: /" && [ ! -s BUILD/badlibs ]
64
+ # Assert that all assebler files are named correctly
65
+ # The strange command below asserts that there are exactly 0 libraries
66
+ # that do end with .s
67
+ - >
68
+ find -name "*.s" | tee BUILD/badasm |
69
+ sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
70
+
40
71
- python : ' 2.7'
41
72
env :
42
73
- NAME=tools
43
74
install :
44
75
# Install dependencies
45
- - sudo apt-get install gcc-arm-embedded doxygen
76
+ - sudo apt-get install gcc-arm-embedded
46
77
- pip install --user -r requirements.txt
47
78
- pip install --user pytest
48
79
- pip install --user pylint
@@ -53,32 +84,11 @@ matrix:
53
84
# Print versions we use
54
85
- arm-none-eabi-gcc --version
55
86
- python --version
56
- - doxygen --version
57
- before_script :
58
- # Create BUILD directory for tests
59
- - mkdir BUILD
60
87
script :
61
- # Assert that the Doxygen build produced no warnings.
62
- # The strange command below asserts that the Doxygen command had an
63
- # output of zero length
64
- - |
65
- doxygen doxyfile_options 2>&1 | tee BUILD/doxygen.out && [ ! -s BUILD/doxygen.out ]
66
- # Assert that all binary libraries are named correctly
67
- # The strange command below asserts that there are exactly 0 libraries that do
68
- # not start with lib
69
- - |
70
- find "(" -name "*.a" -or -name "*.ar" ")" -and -not -name "lib*" | tee BUILD/badlibs | sed -e "s/^/Bad library name found: /" && [ ! -s BUILD/badlibs ]
71
- # Assert that all assebler files are named correctly
72
- # The strange command below asserts that there are exactly 0 libraries that do
73
- # end with .s
74
- - |
75
- find -name "*.s" | tee BUILD/badasm | sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
76
88
# Run local testing on tools
77
- # Note: These take ~40 minutes to run
78
89
- PYTHONPATH=. coverage run -a -m pytest tools/test
79
90
- python2 tools/test/pylint.py
80
91
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
81
- # - python2 -u tools/build_travis.py | sed -n '/^Executing/p'
82
92
- coverage html
83
93
after_success :
84
94
# Coverage for tools
0 commit comments