Skip to content

Commit 2d23e4c

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Added specific versions of Travis-only modules
Use requirements.txt to install specific versions of Travis CI python modules.
1 parent 1a8844e commit 2d23e4c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ matrix:
8585
- doxygen doxyfile_options 2>&1
8686
# Once Mbed OS has been fixed, enable the full test by replacing the top line with this:
8787
# - ( ! doxygen doxyfile_options 2>&1 | grep . )
88-
8988
# Assert that all binary libraries are named correctly
9089
# The strange command below asserts that there are exactly 0 libraries
9190
# that do not start with lib
@@ -106,10 +105,20 @@ matrix:
106105
install:
107106
# Install dependencies
108107
- sudo apt-get install gcc-arm-embedded
108+
# Add additional dependencies specific for testing
109+
- |-
110+
tr -d ' ' >> requirements.txt <<< "
111+
mock==2.0.0
112+
pytest==3.3.0
113+
pylint>=1.9,<2
114+
hypothesis>=3,<4
115+
coverage>=4.5,<5
116+
coveralls>=1.5,<2
117+
"
118+
# ... and install.
109119
- pip install -r requirements.txt
110-
- pip install pytest pylint hypothesis==3.88.3 mock coverage coveralls
111-
# Print versions we use
112120

121+
# Print versions we use
113122
- arm-none-eabi-gcc --version
114123
- python --version
115124
- pip list --verbose

0 commit comments

Comments
 (0)