Installing via .travis.yml

Return to Installation

Installing via .travis.yml

Postby Praios » Tue Nov 03, 2015 2:37 pm

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
Code: Select all
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.
What am I actually talking about? - I don't know...
User avatar
Praios
 
Posts: 238
Joined: Fri Aug 31, 2007 2:23 pm
Location: Germany

Re: Installing via .travis.yml

Postby rdb » Wed Nov 04, 2015 2:26 am

You are running the "echo" command as root, but not the >> part. You could try something like this instead:
Code: Select all
sudo sh -c 'echo "deb http://archive.panda3d.org/ubuntu precise main" >> /etc/apt/sources.list'
rdb
 
Posts: 11223
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Re: Installing via .travis.yml

Postby Praios » Thu Nov 05, 2015 12:16 pm

Thanks! It seems to work - now I just have to make my tests pass. ;)
Code: Select all
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
What am I actually talking about? - I don't know...
User avatar
Praios
 
Posts: 238
Joined: Fri Aug 31, 2007 2:23 pm
Location: Germany


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest