File: .travis-extra-deps.sh

package info (click to toggle)
zeroinstall-injector 2.12-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,148 kB
  • ctags: 3,348
  • sloc: ml: 25,069; xml: 2,610; ansic: 227; sh: 196; makefile: 136; python: 105
file content (27 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -eux
# Install OCaml and OPAM PPAs
install_on_ubuntu () {
  sudo apt-get install -qq time libgtk2.0-dev libcurl4-openssl-dev python-gobject-2
}

install_on_osx () {
  curl -OL "http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.6.dmg"
  sudo hdiutil attach XQuartz-2.7.6.dmg
  sudo installer -verbose -pkg /Volumes/XQuartz-2.7.6/XQuartz.pkg -target /
  brew update &> /dev/null
  brew install gnupg2 gtk+ pygobject
  export PKG_CONFIG_PATH=/usr/local/Library/Homebrew/os/mac/pkgconfig/10.9:/usr/lib/pkgconfig
}

case $TRAVIS_OS_NAME in
  linux)
         install_on_ubuntu ;;
  osx)
         install_on_osx ;;
  *) echo "Unknown OS $TRAVIS_OS_NAME";
     exit 1 ;;
esac

# (downloaded by Travis install step)
bash -e ./.travis-opam.sh