Skip to content

Commit b7c1598

Browse files
committed
Split out "docs" into its own Travis job
And some cleanup
1 parent 7414d79 commit b7c1598

File tree

1 file changed

+33
-23
lines changed

1 file changed

+33
-23
lines changed

.travis.yml

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ before_install:
2626
- sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
2727
# Setup ppa to make sure arm-none-eabi-gcc is correct version
2828
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
29-
- sudo add-apt-repository -y ppa:libreoffice/libreoffice-4-2
3029
- sudo apt-get update -qq
3130

3231
after_success:
@@ -37,12 +36,44 @@ after_failure:
3736

3837
matrix:
3938
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+
4071
- python: '2.7'
4172
env:
4273
- NAME=tools
4374
install:
4475
# Install dependencies
45-
- sudo apt-get install gcc-arm-embedded doxygen
76+
- sudo apt-get install gcc-arm-embedded
4677
- pip install --user -r requirements.txt
4778
- pip install --user pytest
4879
- pip install --user pylint
@@ -53,32 +84,11 @@ matrix:
5384
# Print versions we use
5485
- arm-none-eabi-gcc --version
5586
- python --version
56-
- doxygen --version
57-
before_script:
58-
# Create BUILD directory for tests
59-
- mkdir BUILD
6087
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 ]
7688
# Run local testing on tools
77-
# Note: These take ~40 minutes to run
7889
- PYTHONPATH=. coverage run -a -m pytest tools/test
7990
- python2 tools/test/pylint.py
8091
- coverage run -a tools/project.py -S | sed -n '/^Total/p'
81-
# - python2 -u tools/build_travis.py | sed -n '/^Executing/p'
8292
- coverage html
8393
after_success:
8494
# Coverage for tools

0 commit comments

Comments
 (0)