-
Notifications
You must be signed in to change notification settings - Fork 15
Home
Though it doesn't take long to download files from Oracle, any disruption in the network or maintenance at Oracle's site can cause a build to error. With some small changes, you can leverage Travis CI's cache to download files only once:
env:
global:
- ORACLE_DOWNLOAD_DIR=.cache/oracle
cache:
- directories:
- .cache/oracle
- .travis/oracle/download.sh --unless-exists
It is also possible to use this tool to download and install Instant Client, once you've accepted its license agreement. Set one environment variable:
- ORACLE_COOKIE=ic_linuxx8664
Then download and install the desired version:
- ORACLE_FILE='instantclient/121020/oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm' download.sh
- ORACLE_FILE='instantclient/121020/oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm' download.sh
- ORACLE_FILE='instantclient/121020/oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm' download.sh
- sudo apt-get -qq install libaio1 rpm
- sudo rpm --install --nodeps oracle-instantclient12.1-*.rpm
Libraries and header files are in /usr/lib/oracle/12.1/client64/lib/
and /usr/include/oracle/12.1/client64/
, respectively.
- ORACLE_FILE='instantclient/11204/oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm' download.sh
- ORACLE_FILE='instantclient/11204/oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm' download.sh
- ORACLE_FILE='instantclient/11204/oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm' download.sh
- sudo apt-get -qq install libaio1 rpm
- sudo rpm --install --nodeps oracle-instantclient11.2-*.rpm
Libraries and header files are in /usr/lib/oracle/11.2/client64/lib/
and /usr/include/oracle/11.2/client64/
, respectively.
- ORACLE_FILE='instantclient/10205/oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm' download.sh
- ORACLE_FILE='instantclient/10205/oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm' download.sh
- ORACLE_FILE='instantclient/10205/oracle-instantclient-sqlplus-10.2.0.5-1.x86_64.rpm' download.sh
- sudo apt-get -qq install rpm
- sudo rpm --install --nodeps oracle-instantclient-*-10.2.*.rpm
Libraries and header files are in /usr/lib/oracle/10.2.0.5/client64/lib/
and /usr/include/oracle/10.2.0.5/client64/
, respectively.