File: .travis-extra-deps.sh

package info (click to toggle)
zeroinstall-injector 2.18-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,500 kB
  • sloc: ml: 26,524; xml: 2,700; ansic: 319; sh: 236; makefile: 133; python: 105
file content (38 lines) | stat: -rw-r--r-- 829 bytes parent folder | download | duplicates (3)
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
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
if [ "$STATIC_DIST" == true ]; then
  set -eux
  make static-test
else
  set -eux

  # Install OCaml and OPAM PPAs
  install_on_ubuntu () {
    sudo apt-get install -qq python3
  }

  install_on_osx () {
    # Disable sandboxing on OS X; it prevents the unit-tests from working.
    cat > ~/.opamrc << EOF
  wrap-build-commands: []
  wrap-install-commands: []
  wrap-remove-commands: []
  required-tools: []
EOF
    brew update &> /dev/null
    brew unlink python@2 # Python 3 conflicts with Python 2's /usr/local/bin/2to3-2 file
    brew upgrade gnupg wget
    brew install gtk+3
  }

  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
fi