Installing via .travis.yml


#1

I’m working on some code I want to test via travisCI but I can’t get Panda3D to install via the .travis.yml-file as there always are some dependencies missing.

My last try was

sudo: required
language: python
python:
 - "2.7"
before_install:
 - sudo echo "deb http://archive.panda3d.org/ubuntu precise main" >> /etc/apt/sources.list
 - sudo apt-get update
 - sudo apt-get install panda3d
install: true
script: python pandaplant/demo.py

But I tried several other versions before.


#2

You are running the “echo” command as root, but not the >> part. You could try something like this instead:

sudo sh -c 'echo "deb http://archive.panda3d.org/ubuntu precise main" >> /etc/apt/sources.list'

#3

Thanks! It seems to work - now I just have to make my tests pass. :wink:

before_install:
 - sudo sh -c 'echo "deb http://archive.panda3d.org/ubuntu precise main" >> /etc/apt/sources.list'
 - sudo apt-get update
 - sudo apt-get install panda3d --force-yes