Skip to content

Commit

Permalink
travis: fix Centos 7 java build and tarball generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mckurt committed Dec 5, 2016
1 parent e6db444 commit 63057d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
set -ex

DEPS_UBUNTU="g++ cmake git libboost-regex-dev libkrb5-dev xfslibs-dev libssl-dev python-dev libfuse-dev default-jdk wget unzip maven sudo"
DEPS_CENTOS="gcc-c++ make cmake git boost-devel krb5-devel xfsprogs-devel openssl-devel python-devel fuse-devel java-openjdk java-devel libuuid-devel wget unzip sudo"
DEPS_CENTOS="gcc-c++ make cmake git boost-devel krb5-devel xfsprogs-devel openssl-devel python-devel fuse-devel java-openjdk java-devel libuuid-devel wget unzip sudo which"

MVN_TAR="apache-maven-3.0.5-bin.tar.gz"
MVN_URL="http://mirror.cc.columbia.edu/pub/software/apache/maven/maven-3/3.0.5/binaries/$MVN_TAR"
Expand Down Expand Up @@ -38,6 +38,11 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
CMD="$CMD && export PATH=\${M2_HOME}/bin:\${PATH}"
CMD="$CMD && popd"

if [[ "$VER" == "7" ]]; then
# CentOS7 has the distro information in /etc/redhat-release
CMD="$CMD && cut /etc/redhat-release -d' ' --fields=1,3,4 > /etc/issue"
fi

# now the actual command
CMD="$CMD && make gtest tarball"
fi
Expand Down

0 comments on commit 63057d5

Please sign in to comment.