Skip to content

Commit b54d05f

Browse files
committed
Merge pull request #383 from johnhaddon/travisTesting
Travis testing
2 parents d44a6a2 + 94cbc26 commit b54d05f

File tree

6 files changed

+36
-11
lines changed

6 files changed

+36
-11
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: cpp
2+
3+
os:
4+
- linux
5+
6+
before_install:
7+
- sudo apt-get update -qq
8+
- sudo apt-get install -qq libboost-all-dev
9+
- sudo apt-get install -qq libopenexr-dev
10+
- sudo apt-get install -qq libtbb-dev
11+
- sudo apt-get install -qq libfreetype6-dev
12+
13+
script:
14+
- scons testCore testCorePython CXX=$CXX ENV_VARS_TO_IMPORT="PATH TRAVIS" RMAN_ROOT=$DELIGHT BOOST_LIB_SUFFIX=""
15+
16+
compiler:
17+
## \todo Enable clang here too. We can't with the default Ubuntu boost
18+
# install though, because it is broken for Clang :
19+
#
20+
# https://svn.boost.org/trac/boost/ticket/6156
21+
- gcc

SConstruct

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ o.Add(
123123
o.Add(
124124
"BOOST_INCLUDE_PATH",
125125
"The path to the boost include directory.",
126-
"/usr/local/include/boost-1_34_1",
126+
"/usr/include",
127127
)
128128

129129
o.Add(
130130
"BOOST_LIB_PATH",
131131
"The path to the boost library directory.",
132-
"/usr/local/lib",
132+
"/usr/lib",
133133
)
134134

135135
o.Add(
@@ -145,13 +145,13 @@ o.Add(
145145
o.Add(
146146
"OPENEXR_INCLUDE_PATH",
147147
"The path to the OpenEXR include directory.",
148-
"/usr/local/include/OpenEXR",
148+
"/usr/include/OpenEXR",
149149
)
150150

151151
o.Add(
152152
"OPENEXR_LIB_PATH",
153153
"The path to the OpenEXR lib directory.",
154-
"/usr/local/lib",
154+
"/usr/lib",
155155
)
156156

157157
o.Add(
@@ -227,7 +227,7 @@ o.Add(
227227
o.Add(
228228
"FREETYPE_INCLUDE_PATH",
229229
"The path to the FreeType include directory.",
230-
"/usr/local/include/freetype2",
230+
"/usr/include/freetype2",
231231
)
232232

233233
o.Add(
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/IECore/TIFFImageReader.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ def testProblemTDL( self ) :
421421

422422
# 3delight has started using the SMinSampleValue and SMaxSampleValue tags to store
423423
# the range of values in a tdl file. this is jolly useful for shader writers but a pain
424-
# for anyone using libtiff to read the images. libtiff currently doesn't support the
425-
# storage of different values per sample, and therefore complains when given
424+
# for anyone using libtiff to read the images. not all libtiff versions support the
425+
# storage of different values per sample, and therefore libtiff may complain when given
426426
# one of these files. we deal with this by pretending nothing has happened and allowing
427427
# all directories except the last one to be read (it's only the last one that has the
428428
# problem).
@@ -435,13 +435,17 @@ def testProblemTDL( self ) :
435435
( 16, 8 ),
436436
( 8, 4 ),
437437
( 4, 2 ),
438-
# there should be a ( 2, 1 ) as well, but the best we can do is
439-
# ignore it.
438+
( 2, 1 ), # this is the one that could cause a problem
440439
]
441440

442-
self.assertEqual( r.numDirectories(), len( expectedResolutions ) )
441+
self.assertTrue(
442+
# good libtiff version
443+
r.numDirectories() == len( expectedResolutions ) or
444+
# bad libtiff version
445+
r.numDirectories() == len( expectedResolutions ) - 1
446+
)
443447

444-
for i in range( 0, len( expectedResolutions ) ) :
448+
for i in range( 0, r.numDirectories() ) :
445449
r.setDirectory( i )
446450
image = r.read()
447451
size = image.dataWindow.size()

0 commit comments

Comments
 (0)