-
Notifications
You must be signed in to change notification settings - Fork 978
/
.travis.sh
executable file
·45 lines (44 loc) · 973 Bytes
/
.travis.sh
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
39
40
41
42
43
44
45
#!/bin/bash
case "$1" in
"install")
case "${TRAVIS_OS_NAME}" in
"linux")
;;
"osx")
brew update
brew install netpbm
;;
esac
case "${BUILD_SYSTEM}" in
"bazel")
case "${TRAVIS_OS_NAME}" in
"linux")
sudo apt-get remove openjdk-9-jdk oracle-java9-installer # Conflicts with Bazel.
wget https://github.com/bazelbuild/bazel/releases/download/1.1.0/bazel_1.1.0-linux-x86_64.deb
echo '138b47ffd54924e3c0264c65d31d3927803fb9025db4d5b18107df79ee3bda95 bazel_1.1.0-linux-x86_64.deb' | sha256sum -c --strict || exit 1
sudo dpkg -i bazel_1.1.0-linux-x86_64.deb
;;
"osx")
brew cask install homebrew/cask-versions/adoptopenjdk8
brew install bazel
;;
esac
;;
"make")
;;
esac
;;
"script")
case "${BUILD_SYSTEM}" in
"bazel")
bazel build -c opt ...:all
GUETZLI_BIN=bazel-bin/guetzli
;;
"make")
make
GUETZLI_BIN=bin/Release/guetzli
;;
esac
tests/smoke_test.sh $GUETZLI_BIN
;;
esac