Skip to content

Commit fcd1cd2

Browse files
committed
Generalize LD_LIBRARY_PATH
Avoid having to manually update python/travis versions
1 parent 31f0b30 commit fcd1cd2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ script:
4040
- python -m pytest
4141

4242
# Set-up dll path for embedded tests
43-
- export LD_LIBRARY_PATH=/opt/python/2.7.9/lib:$LD_LIBRARY_PATH
44-
- export LD_LIBRARY_PATH=/opt/python/3.3.5/lib:$LD_LIBRARY_PATH
45-
- export LD_LIBRARY_PATH=/opt/python/3.4.2/lib:$LD_LIBRARY_PATH
46-
- export LD_LIBRARY_PATH=/opt/python/3.5.2/lib:$LD_LIBRARY_PATH
47-
- export LD_LIBRARY_PATH=/opt/python/3.6.0/lib:$LD_LIBRARY_PATH
48-
- export LD_LIBRARY_PATH=/opt/python/3.7.0/lib:$LD_LIBRARY_PATH
43+
- OUTPUT=$(python --version 2>&1)
44+
- PY_VER=${OUTPUT:7:9}
45+
- export LD_LIBRARY_PATH=/opt/python/$PY_VER/lib:$LD_LIBRARY_PATH
4946
- echo $LD_LIBRARY_PATH
5047
- cp Python.Runtime.dll.config src/embed_tests/bin/Python.Runtime.dll.config
5148
# Run embedded tests

0 commit comments

Comments
 (0)