forked from 0install/0install
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis-extra-deps.sh
More file actions
38 lines (34 loc) · 829 Bytes
/
Copy path.travis-extra-deps.sh
File metadata and controls
38 lines (34 loc) · 829 Bytes
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