Skip to content

Commit

Permalink
Add Travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Amudtogal committed Aug 3, 2019
1 parent 21f6300 commit 3ed4239
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3ed4239

Please sign in to comment.