diff --git a/.travis.yml b/.travis.yml index 039f99c4d..30971ae3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ branches: # 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" + - "3.5.7" before_install: # update apt-gets repository sources @@ -24,9 +24,9 @@ before_install: - sudo apt-get install python-pip - - sudo pip install PyYaml + - pip install PyYaml - - sudo pip install numpy + - pip install numpy install: # create temp directory where we store a recent blender version @@ -49,7 +49,11 @@ install: # 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 python ${PWD}/setup.py --installto ${PWD}/tmp/blender/2.79/scripts/addons/phobos + # - 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 --installto ${PWD}/tmp/blender/2.79/scripts/addons/phobos + - 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 diff --git a/setup.py b/setup.py index 12bdb0e44..7e13678b9 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3.5 +#!/usr/bin/python # ------------------------------------------------------------------------------- # This file is part of Phobos, a Blender Add-On to edit robot models. @@ -32,7 +32,7 @@ import sys import shutil from distutils.dir_util import copy_tree -import importlib.util +import importlib scriptinformation = """ This is the setup script for Phobos.