Git Product home page Git Product logo

travis-oracle's Introduction

Build

Use Oracle Database Express Edition in your builds on Travis CI.

Usage

To use this tool, you must have an Oracle account with which you have accepted the current license agreement for Oracle Database Express Edition.

  1. Add your Oracle username and password to your build environment variables, either as hidden repository settings or encrypted variables:

    Variable Name Value
    ORACLE_LOGIN_userid your username
    ORACLE_LOGIN_pass your password
  2. Add the version information to your build environment variables:

    - ORACLE_COOKIE=sqldev
    - 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_SID=XE
  3. Download and extract the latest release into your project. For example,

    wget 'https://github.com/cbandy/travis-oracle/archive/v2.0.3.tar.gz'
    mkdir -p .travis/oracle
    tar x -C .travis/oracle --strip-components=1 -f v2.0.3.tar.gz
  4. Enable sudo:

    sudo: required
  5. Finally, execute the extracted scripts as part of your build, usually during before_install:

    - .travis/oracle/download.sh
    - .travis/oracle/install.sh

SQL*Plus is installed to $ORACLE_HOME/bin/sqlplus, and the current user has both normal and DBA access without a password, i.e. / and / AS SYSDBA.

OCI and OCCI libraries and header files are in $ORACLE_HOME/lib and $ORACLE_HOME/rdbms/public, respectively.

travis-oracle's People

Contributors

cbandy avatar jayvdb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

travis-oracle's Issues

Fail Oracle Website

if oracle website have problems, the script don't show the problem, and process continue.

captura-de-tela-2015-10-15-_s-18 20 47
captura-de-tela-2015-10-15-_s-18 20 11
screen shot 2015-10-16 at 1 36 01 am

Archive: oracle-xe-11.2.0-1.0.x86_64.rpm.zip End-of-central-directory signature not found.

Thanks for providing travis-oracle. Not every time but I'm seeing Archive: oracle-xe-11.2.0-1.0.x86_64.rpm.zip End-of-central-directory signature not found. errors.

  • Error message
Archive:  oracle-xe-11.2.0-1.0.x86_64.rpm.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of oracle-xe-11.2.0-1.0.x86_64.rpm.zip or
        oracle-xe-11.2.0-1.0.x86_64.rpm.zip.zip, and cannot find oracle-xe-11.2.0-1.0.x86_64.rpm.zip.ZIP, period.
The command ".travis/oracle/install.sh" failed and exited with 9 during .
Your build has been stopped.

It does not reproduce every time. Also when the same commit pushed to my origin repository, it works fine.

I'd like to address this since there is no work around found yet.

Detect login failure

Even with the fix for #10, a failed login (e.g. bad or missing password) will manifest as an error during install about a bad archive file. It would be nicer to detect this and relay an informative message to the user.

download.js errorCode: 299 Bad Request

My download.js is not modified, and while running many builds I encountered this error on one of them.

+exec node download.js
{ errorCode: 299,
  errorString: 'Error downloading https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~... - server replied: Bad Request',
  id: 2,
  url: 'https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~A...' }
Unable to connect to oracle.com

https://travis-ci.org/jayvdb/travis-oracle/jobs/119102903

Validate checksum before using a download file

Consider caching and --unless-exists argument as well.

$ shasum -a 256 oracle-xe-11.2.0-1.0.x86_64.rpm.zip
b5039fad2e4f92c68778dcabbd0b4622a6cb025f25f7d6222f9e9de53ebab531  oracle-xe-11.2.0-1.0.x86_64.rpm.zip

osx support

Here are a few ways this can be done : https://blogs.oracle.com/opal/entry/the_easiest_way_to_enable

The Oracle db part should be a fairly straight forward mix of installing VirtualBox , finding a slim-ish VM image that is sufficient for Oracle XE, and the Oracle rpm that we're already downloading.

Then installing the Oracle client on OSX and configuring the tunnelling..

Unicode test

It would be good to include a unicode test

In order to get unicode to work properly with an nvarchar2 using pythons cx_Oracle, I needed to set NLS_LANG=American_America.UTF8. I dont know for sure that it is a cx_Oracle specific problem, but I suspect it may also be a problem for other clients, in which case the documentation should mention this.

Also it would be good to note in the documentation that LD_LIBRARY_PATH may need to be set for some clients to work. (again, this was needed to get it to work with cx_Oracle).

If it is of interest, my successful use of cx_Oracle is at https://github.com/jayvdb/era_data .
If it is useful, I'd be happy to create a set of sample cx_Oracle python files for this repo .

Unable to use all ORACLE_LOGIN environment variables

First, thanks for the downloader. It's been awesome, great time sver.

In SOCI project, we used it with great success (eg. https://travis-ci.org/SOCI/soci/jobs/281665636).
Lately, our builds stopped working due to incomplete downloads (eg. https://travis-ci.org/SOCI/soci/jobs/291261632) and I'm unclear what is the reason. If I sign in to the Oracle website via web browser using the downloader's credentials, all works.

I noticed a difference in the downloader output - now it prints:

Unable to use all ORACLE_LOGIN environment variables: ["password","ssousername"]

What does this message mean?

Does it mean anything changed in Travis CI and I have to re-add the environment variables with credentials to re-hash them?

Has Oracle changed their login form?

Unfortunately, my JS fu is running very short to figure out from the download.js :(
I'd appreciate any insights.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.