sudo: false language: python addons: apt: packages: - unzip # Java8 Required for Sonar and SQLCL - oracle-java8-installer - oracle-java8-set-default sonarqube: token: secure: ${SONAR_TOKEN} branches: - develop - master services: - docker env: global: - UT3_OWNER=ut3 - UT3_OWNER_PASSWORD=ut3 - UT3_OWNER_TABLESPACE=users - UT3_USER=ut3_user - UT3_USER_PASSWORD=ut3 - UT3_USER_TABLESPACE=users # Target Branch and Directory for Deployment of Docs - PAGES_TARGET_BRANCH="gh-pages" - PAGES_VERSION_BASE="version3" - CACHE_DIR=$HOME/.cache # Database Env - SQLCLI="$HOME/sqlcl/bin/sql" - ORACLE_PWD="oracle" - CONTAINER_IP="" - CONNECTION_STR="" - ORACLE_12cR1SE="12c-r1-se" - ORACLE_11gR2XE="11g-r2-xe" matrix: - ORACLE_VERSION=$ORACLE_12cR1SE - ORACLE_VERSION=$ORACLE_11gR2XE cache: directories: - $CACHE_DIR install: - pip install -r .travis/python_req.txt - npm install -g phantomjs-prebuilt casperjs - bash .travis/install_sqlcl.sh - bash .travis/start_db.sh script: - CONTAINER_IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $ORACLE_VERSION) - test $ORACLE_VERSION = $ORACLE_12cR1SE && CONNECTION_STR="$CONTAINER_IP:1521/ORCLPDB1" || true - test $ORACLE_VERSION = $ORACLE_11gR2XE && CONNECTION_STR="$CONTAINER_IP:1521/XE" || true - bash .travis/create_utplsql_owner.sh - bash .travis/create_utplsql_user.sh - bash .travis/install_libraries.sh - bash .travis/install.sh - bash .travis/grant_user.sh - bash .travis/run_examples_as_owner.sh - bash .travis/run_test_as_owner.sh - bash .travis/run_examples_as_user.sh - bash .travis/create_release.sh # - bash .travis/run_test_as_user.sh # - bash .travis/build_docs.sh # - bash .travis/push_docs_to_gh_pages.sh - sonar-scanner - bash .travis/coveralls_uploader.sh deploy: provider: releases api_key: $github_api_token file: - utPLSQL$TRAVIS_TAG.zip - utPLSQL$TRAVIS_TAG.tar.gz skip_cleanup: true on: repo: utPLSQL/utPLSQL tags: true notifications: slack: utplsql:oiMuXO95TvKeAUENuDt4cPrB