-
Notifications
You must be signed in to change notification settings - Fork 57
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitelist PPA for faster builds #34
Comments
This is related to #32. To be honest I have not yet encountered both issues, so I'm not sure what to do. |
Any new repositories created today require a |
ha ok, thanks for the explanation. We still need sudo to install the depexts though, so I'll merge #32 first. |
I've asked to have both avsm/ppa and opam added to the whitelist, so both are now available and we can now run travis without sudo. |
@bluddy thanks! unfortunately by default we don't know which packages to whitelist in the |
Ah ok. I hadn't bothered to look up |
would something like this work? I haven't worked out the bash 100% (variable scoping), but it allows this way, you could use the pkgs=
for pkg in ocaml ocaml-base ocaml-native-compilers ocaml-compiler-libs\
ocaml-interp ocaml-base-nox ocaml-nox camlp4 camlp4-extra
do
if ! dpkg -l $pkg | grep -Eq 'ii *'$pkg' *'$(full_version $pkg $OCAML_VERSION)
then
pkgs="$(full_apt_version $pkg $OCAML_VERSION) $pkgs"
fi
done
for pkg in jq opam
do
if ! dpkg -l $pkg; then
pkgs="$pkg $pkgs"
fi
done
if [ ! -z $pkgs ]; then
sudo add-apt-repository --yes ppa:${ppa}
sudo apt-get update -qq
sudo apt-get install -y $pkgs
fi |
According to http://docs.travis-ci.com/user/apt/ we can ask for the opam PPA and packages to be whitelisted, which would allow building with
sudo: false
, which is apparently much faster.The text was updated successfully, but these errors were encountered: