forked from LuxCoreRender/BlendLuxCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (53 loc) · 2.71 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
dist: trusty
language: python
# Define which python version to build against.
# As blender comes bundled with it's own python the version does not really matter
python:
- "3.4"
before_install:
# update apt-gets repository sources
- sudo apt-get update -qq
# install blender from official sources.
# This will most propably install an outdated blender version,
# but it will resolve all system dependencies blender has to be able to run.
- sudo apt-get install -y blender
# Download and LuxCore deps
- git clone https://github.com/LuxCoreRender/LuxCore.git
- cd LuxCore
# Install deps
- sudo apt-get install -y git cmake g++ flex bison libbz2-dev libopenimageio-dev libtiff5-dev libpng12-dev libgtk-3-dev libopenexr-dev libgl1-mesa-dev python3-dev python3-pip python3-numpy
# Install deps
- wget https://github.com/LuxCoreRender/LinuxCompileDeps/releases/download/luxcorerender_v2.1alpha4/target-64-sse2.tgz
- tar zxf target-64-sse2.tgz
- export LD_LIBRARY_PATH=`pwd`/target-64-sse2/lib:$LD_LIBRARY_PATH
- cd ..
install:
# Compile LuxCore
- cd LuxCore
- cmake -DBOOST_SEARCH_PATH=`pwd`/target-64-sse2 -DOPENIMAGEIO_ROOT_DIR=`pwd`/target-64-sse2 -DOPENIMAGEIO_ROOT_DIR=`pwd`/target-64-sse2 -DEMBREE_SEARCH_PATH=`pwd`/target-64-sse2 -DBLOSC_SEARCH_PATH=`pwd`/target-64-sse2 -DTBB_SEARCH_PATH=`pwd`/target-64-sse2 -DBlosc_USE_STATIC_LIBS=ON -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.4m.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.4m -DOIDN_INCLUDE_PATH=`pwd`/target-64-sse2/include -DOIDN_LIBRARY=`pwd`/target-64-sse2/lib/libOpenImageDenoise.so .
- make -j 2 pyluxcore
- cd ..
# Copy LuxCore binaries to BlendLuxCore/bin directory
- cd bin
- ./get_binaries.py ../LuxCore --overwrite
- cd ..
# create temp directory where we store a recent blender version
- mkdir tmp && cd tmp
# download the blender version we want to test against
# TODO: for now this points to release candidate 1, but it should point to 2.79a once that gets out
- wget https://github.com/LuxCoreRender/BlenderForTesting/releases/download/2.79a_rc1/blender.tar.bz2
# Extract the archive
- tar jxf blender.tar.bz2
# rename the extracted folder to "blender" for easier reference
- mv blender-2.7* blender
# remove the archive, we do not need it anymore
- rm blender.tar.bz2
# go back to root directory
- cd ..
# now create a symlink to the addon within blenders addons directory
# this is important, because otherwhise blender would not be able to load the addon
- ln -s ${PWD} ${PWD}/tmp/blender/2.79/scripts/addons/BlendLuxCore
# Finally start our test runner passing it the blender executable from the downloaded blender release
script:
- cd tests
- ./testrunner.py ../tmp/blender/blender