Skip to content

Commit 9e586f5

Browse files
author
Clement Champetier
committed
Travis: clean scripts
set -x: print commands and their arguments as they are executed.
1 parent cb26e58 commit 9e586f5

7 files changed

+25
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ env:
2121
- DEPENDENCY_MODE=ffmpeg ENABLE_COVERAGE=false
2222

2323
matrix:
24+
# generate coverage only with gcc
2425
exclude:
2526
- compiler: clang
2627
env: DEPENDENCY_MODE=ffmpeg ENABLE_COVERAGE=true
@@ -50,11 +51,9 @@ script:
5051
- ./tools/travis.build.sh
5152

5253
# launch tests
53-
- if [ ${DEPENDENCY_MODE} = "ffmpeg" ]; then ./../tools/travis.python.nosetests.sh; fi
54+
- if [ ${DEPENDENCY_MODE} = "ffmpeg" ]; then ./tools/travis.python.nosetests.sh; fi
5455

5556
after_success:
56-
- cd ${TRAVIS_BUILD_DIR}
57-
5857
# generate coverage for coveralls
5958
- if [ ${ENABLE_COVERAGE} ]; then ./tools/travis.gcc.generate.coverage.sh; fi
6059

tools/travis.build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# Print commands and their arguments as they are executed.
4+
set -x
5+
36
# Create directory of build
47
mkdir -p ${AVTRANSCODER_BUILD}
58
cd ${AVTRANSCODER_BUILD}

tools/travis.gcc.generate.coverage.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/bin/bash
2+
3+
# Print commands and their arguments as they are executed.
4+
set -x
5+
16
# capture coverage info
27
lcov --capture --directory ${AVTRANSCODER_BUILD} --output-file coverage.info
38

tools/travis.gcc.install.coverage.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/bin/bash
2+
3+
# Print commands and their arguments as they are executed.
4+
set -x
5+
16
# install latest LCOV (1.9 was failing for me)
27
wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
38
tar xf lcov_1.11.orig.tar.gz

tools/travis.linux.install.deps.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2+
3+
# Print commands and their arguments as they are executed.
4+
set -x
5+
26
lsb_release -a
37

48
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse"

tools/travis.osx.install.deps.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# Print commands and their arguments as they are executed.
4+
set -x
5+
36
brew update
47

58
brew install gcc cmake swig

tools/travis.python.nosetests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# Print commands and their arguments as they are executed.
4+
set -x
5+
36
# Get avtranscoder library
47
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${DEPENDENCY_INSTALL}/lib
58
export PYTHONPATH=${AVTRANSCODER_INSTALL}/lib/python2.7/site-packages/:$PYTHONPATH

0 commit comments

Comments
 (0)