forked from dfki-ric/phobos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (39 loc) · 1.76 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
# this is essential to make python work out of the box
language: python
dist: xenial
# safelist
branches:
only:
- master
# Define which python version to build against.
# As blender comes bundled with it's own python you can use just one version if you like
python:
- "3.5.7"
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 blender
install:
# create temp directory where we store a recent blender version
- mkdir tmp && cd tmp
# download the blender version you want to test against
- wget http://mirror.cs.umn.edu/blender.org/release/Blender2.79/blender-2.79-linux-glibc219-x86_64.tar.bz2
# Extract the archive
- tar jxf blender-2.79-linux-glibc219-x86_64.tar.bz2
# rename the extracted folder to "blender" for easier reference
- mv blender-2.79-linux-glibc219-x86_64 blender
# remove the archive, we do not need it anymore
- rm blender-2.79-linux-glibc219-x86_64.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
# - sudo ln -s ${PWD}/phobos ${PWD}/tmp/blender/2.79/scripts/addons/phobos
# instead we use the setup.py to install the addon to the folder
- python ${PWD}/setup.py -t ${PWD}/tmp/blender/2.79/scripts/addons/phobos -b ${PWD}/tmp/blender
- ls ${PWD}/tmp/blender/2.79/scripts/addons/phobos
# Finally start our test runner passing it the blender executable from the downloaded blender release
script: python testrunner.py ./tmp/blender/blender