add oracle tests

This commit is contained in:
Travis Burtrum 2018-05-17 01:47:42 -04:00
parent 4bb9b33604
commit bcbcab5de1
1 changed files with 14 additions and 8 deletions

View File

@ -8,6 +8,7 @@ env:
- ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip - ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
- ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe - ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
- ORACLE_SID=XE - ORACLE_SID=XE
- ORACLE_DOWNLOAD_DIR=$HOME/.traviscache
services: services:
- postgresql - postgresql
@ -59,19 +60,23 @@ matrix:
before_install: before_install:
- wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh - wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh
# - wget 'https://github.com/cbandy/travis-oracle/archive/v2.0.3.tar.gz' - wget 'https://github.com/cbandy/travis-oracle/archive/v2.0.3.tar.gz'
# - mkdir -p .travis/oracle - mkdir -p $HOME/.traviscache
# - tar x -C .travis/oracle --strip-components=1 -f v2.0.3.tar.gz - mkdir -p .travis/oracle
# - .travis/oracle/download.sh - tar x -C .travis/oracle --strip-components=1 -f v2.0.3.tar.gz
# - .travis/oracle/install.sh - if [[ ! -f $HOME/.traviscache/oracle-xe-11.2.0-1.0.x86_64.rpm.zip ]]; then
.travis/oracle/download.sh;
fi
- .travis/oracle/install.sh
install: install:
- if [[ "${JDK}" == 'OpenJDK 6' ]]; then - if [[ "${JDK}" == 'OpenJDK 6' ]]; then
export CUSTOM_MVN_VERION="3.2.5"; export CUSTOM_MVN_VERION="3.2.5";
echo "Download Maven ${CUSTOM_MVN_VERION}...."; echo "Download Maven ${CUSTOM_MVN_VERION}....";
wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1; export M2_HOME=$HOME/.traviscache/apache-maven-${CUSTOM_MVN_VERION};
unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1; [ -d $M2_HOME ] || wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip;
export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION}; [ -d $M2_HOME ] || unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip;
[ -d $M2_HOME ] || mv apache-maven-${CUSTOM_MVN_VERION} $M2_HOME;
export PATH=$M2_HOME/bin:$PATH; export PATH=$M2_HOME/bin:$PATH;
mvn -version; mvn -version;
fi fi
@ -84,3 +89,4 @@ after_success:
cache: cache:
directories: directories:
- $HOME/.m2 - $HOME/.m2
- $HOME/.traviscache