Git, devscripts, debhelper on Travis CI
I am writing a tool that I want to test on Travis CI.
Is it safe to assume that the packages
- devscripts
- debhelper
- git -core
are present in the CI environment on which my tests will run?
I just need dch and git to be honest.
I just looked at the cookbooks and they don't seem to have what I need.
Is there a way to get what I need in a CI environment?
Can I install packages automatically via travis.yml somehow?
thank
+3
source to share
1 answer
I decided to use before_install inside yaml. This allowed me to specify any commands I wanted to run, so I basically did:
language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
- "5.10"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libjson-xs-perl devscripts git-core debhelper
- git config --global user.email "test@test.com"
- git config --global user.name "Mr Test"
+3
source to share