Praios
November 3, 2015, 7:37pm
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.
rdb
November 4, 2015, 7:26am
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'
Praios
November 5, 2015, 5:16pm
3
Thanks! It seems to work - now I just have to make my tests pass.
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