diff --git a/test/scripts/ci/install_hive.sh b/test/scripts/ci/install_hive.sh index 4283208..ed5040f 100755 --- a/test/scripts/ci/install_hive.sh +++ b/test/scripts/ci/install_hive.sh @@ -12,8 +12,8 @@ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys chmod 0600 ~/.ssh/authorized_keys sudo apt-get -y install openjdk-7-jre -wget --quiet --directory-prefix=/opt http://apache.rediris.es/hadoop/core/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}.tar.gz -wget --quiet --directory-prefix=/opt http://apache.rediris.es/hive/hive-${HIVE_VERSION}/apache-hive-${HIVE_VERSION}-bin.tar.gz +wget --quiet --directory-prefix=/opt http://archive.apache.org/dist/hadoop/common/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}.tar.gz +wget --quiet --directory-prefix=/opt http://archive.apache.org/dist/hive/hive-${HIVE_VERSION}/apache-hive-${HIVE_VERSION}-bin.tar.gz tar -xzf /opt/hadoop-${HADOOP_VERSION}.tar.gz -C /opt tar -xzf /opt/apache-hive-${HIVE_VERSION}-bin.tar.gz -C /opt sed -i -- 's/export JAVA_HOME=${JAVA_HOME}/export JAVA_HOME=\/usr\/lib\/jvm\/java-7-openjdk-amd64/g' ${HADOOP_HOME}/etc/hadoop/hadoop-env.sh diff --git a/test/scripts/ci/install_postgres.sh b/test/scripts/ci/install_postgres.sh index 17bc1b6..8cc437d 100755 --- a/test/scripts/ci/install_postgres.sh +++ b/test/scripts/ci/install_postgres.sh @@ -1,16 +1,16 @@ #!/bin/bash # echo commands -set -x +set -x # exit on error -set -e +set -e # Add the PDGD repository -apt-key adv --keyserver keys.gnupg.net --recv-keys 7FCC7D46ACCC4CF8 +sudo apt-key adv --keyserver keys.gnupg.net --recv-keys ACCC4CF8 add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" apt-get update - + # Remove those all PgSQL versions except the one we're testing PGSQL_VERSIONS=(9.2 9.3 9.4 9.5 9.6 10 11) /etc/init.d/postgresql stop # stop travis default instance @@ -21,7 +21,7 @@ for V in "${PGSQL_VERSIONS[@]}"; do done apt-get -y autoremove -# Install PostgreSQL +# Install PostgreSQL apt-get -y install postgresql-${PGSQL_VERSION} postgresql-server-dev-${PGSQL_VERSION} # Configure it to accept local connections from postgres