@@ -15,6 +15,7 @@ addons:
1515 branches :
1616 - develop
1717 - master
18+ - feature/using_released_to_test_develop
1819
1920services :
2021 - docker
2324 global :
2425 - UT3_OWNER=ut3
2526 - UT3_OWNER_PASSWORD=ut3
27+ - UT3_RELEASE_VERSION_SCHEMA=UT3_LATEST_RELEASE
2628 - UT3_USER="UT3\$USER#"
2729 - UT3_USER_PASSWORD=ut3
30+ - UT3_TESTER=ut3_tester
31+ - UT3_TESTER_PASSWORD=ut3
2832 - UT3_TABLESPACE=users
2933 # Environment for building a release
3034 - CURRENT_BRANCH=${TRAVIS_BRANCH}
4145 - ORACLE_PWD="oracle"
4246 - UT3_DOCKER_REPO="utplsqlv3/oracledb"
4347 - DOCKHER_HUB_REPO="${DOCKER_BASE_TAG:-$UT3_DOCKER_REPO}"
48+ # utPLSQL released version directory
49+ - UTPLSQL_DIR="utPLSQL"
4450 matrix :
4551 - ORACLE_VERSION="${DOCKER_TAG_11G:-11g-r2-xe}" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
4652 - ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2}" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
@@ -52,7 +58,22 @@ cache:
5258 - $CACHE_DIR
5359 - node_modules
5460
61+ before_install :
62+ # The update_project_version is done before deployment to validate that the change of project files does not break installation
63+ - bash .travis/update_project_version.sh
64+ -
git config --global user.email "[email protected] " 65+ - git config --global user.name "${UTPLSQL_BUILD_USER_NAME}"
66+ - git remote rm origin
67+ - git remote add origin https://${github_api_token}@github.com/${UTPLSQL_REPO}
68+ # download latest utPLSQL release
69+ # - curl -LOk $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip" | sed 's/"//g')
70+ - git clone --depth=1 --branch=develop https://github.com/utPLSQL/utPLSQL.git $UTPLSQL_DIR
71+ # download utPLSQL-cli develop
72+ - curl -Lk -o utPLSQL-cli.zip https://bintray.com/viniciusam/utPLSQL-cli/download_file?file_path=utPLSQL-cli-develop-test3.zip
73+
5574install :
75+ # - unzip utPLSQL.zip
76+ - unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli
5677 - pip install mkdocs
5778 - bash .travis/install_sqlcl.sh
5879 - sudo mkdir -p /dev/pdbs
@@ -61,16 +82,14 @@ install:
6182 - df -h
6283
6384before_script :
64- # The update_project_version is done before deployment to validate that the change of project files does not break installation
65- - bash .travis/update_project_version.sh
66- -
git config --global user.email "[email protected] " 67- - git config --global user.name "${UTPLSQL_BUILD_USER_NAME}"
68- - git remote rm origin
69- - git remote add origin https://${github_api_token}@github.com/${UTPLSQL_REPO}
85+ - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install.sh; fi
86+ - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install_utplsql_release.sh; fi
87+ - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/create_additional_grants_for_old_tests.sh; fi
88+ - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_examples.sh; fi
89+ - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_old_tests.sh; fi
7090
7191script :
72- - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install.sh; fi
73- - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_examples_and_tests.sh; fi
92+ - if [ "${TRAVIS_TAG}" = "" ]; then bash test/install_and_run_tests.sh; fi
7493 - if [ "${TRAVIS_TAG}" = "" ] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sonar-scanner; fi
7594 - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/coveralls_uploader.sh; fi
7695 - bash .travis/build_docs.sh
0 commit comments