Skip to content

Commit 3a0896d

Browse files
author
Clement Champetier
committed
Travis: launch python nosetests after build
1 parent aba8560 commit 3a0896d

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ before_script:
1212
- env | sort
1313
- date -u
1414
- uname -a
15-
15+
1616
- chmod +x tools/travis.linux.install.deps.sh
1717
- chmod +x tools/travis.osx.install.deps.sh
1818

@@ -22,6 +22,10 @@ before_script:
2222
script:
2323
- mkdir build
2424
- cd build
25-
- cmake ..
26-
- make
25+
- cmake .. -DCMAKE_INSTALL_PREFIX=`pwd`/dist
26+
- make install
2727

28+
after_script:
29+
- cd ..
30+
- chmod +x tools/travis.python.nosetests.sh
31+
- ./tools/travis.python.nosetests.sh

tools/travis.linux.install.deps.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty-updates mai
66
sudo apt-add-repository "deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse"
77
sudo apt-get update -qq
88
sudo apt-get install -qq gcc g++ cmake swig swig2.0
9+
sudo apt-get install -qq python-nose
910
sudo apt-get install -qq libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavresample-dev python-dev freeglut3-dev libxmu-dev doxygen

tools/travis.osx.install.deps.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
brew update
44

55
brew install gcc cmake swig
6+
brew install scipy
67
brew install ffmpeg freeglut doxygen

tools/travis.python.nosetests.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
export PYTHONPATH=`pwd`/build/dist/lib:`pwd`/build/dist/lib/python2.7/site-packages/:$PYTHONPATH
4+
5+
export AVTRANSCODER_TEST_VIDEO_FILE=`pwd`/data/video/video.mxf
6+
export AVTRANSCODER_TEST_AUDIO_FILE=`pwd`/data/audio/audio.wav
7+
8+
cd test/pyTest
9+
10+
nosetests

0 commit comments

Comments
 (0)