-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
47 lines (41 loc) · 2.39 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: node_js
os: linux
services:
- docker
env:
global:
- UT3_RELEASE_VERSION_SCHEMA=UT3
- UT3_TABLESPACE=users
- UTPLSQL_REPO="utPLSQL/utPLSQL"
- ORACLE_PWD="oracle"
- DOCKHER_HUB_REPO="utplsqlv3/oracledb"
- BUILD_DIR=${TRAVIS_BUILD_DIR}
- DOCKER_VOLUME="/home/oracle/host"
- DOCKER_ENV="-e SQLCLI=sqlplus -e UT3_RELEASE_VERSION_SCHEMA -e UT3_TABLESPACE -e ORACLE_PWD -e CONNECTION_STR -e UTPLSQL_DIR"
#utPLSQL released version directory
- UTPLSQL_DIR="utPLSQL"
jobs:
- ORACLE_VERSION="11g-xe-small" DOCKER_DIR='11.2.0.2-xe-small' DOWNLOAD_NAME='xe11g' CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_VOLUME="/mnt/host" DOCKER_OPTIONS='--shm-size=1g'
# - ORACLE_VERSION="12c-r1-se2-small" DOCKER_DIR='12.1.0.2-small' DOWNLOAD_NAME='se12c' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
# - ORACLE_VERSION="12c-r2-se2-small" DOCKER_DIR='12.1.0.2-small' DOWNLOAD_NAME='se12c' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
# - ORACLE_VERSION="18c-se2-small" DOCKER_DIR='18.3-small' DOWNLOAD_NAME='18.3' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
# - ORACLE_VERSION="19c-se2-small" DOCKER_DIR='19.3-small' DOWNLOAD_NAME='19.3' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
before_install:
# download latest utPLSQL release
# - curl -LOk $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip\"" | sed 's/"//g')
# download latest utPLSQL-cli release
# - curl -Lk -o utPLSQL-cli.zip $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL-cli/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip\"" | sed 's/"//g')
- echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart
- docker version -f '{{.Server.Experimental}}'
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USER}" --password-stdin
install:
- npm install -g casperjs
# - unzip utPLSQL.zip
# - unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli
# Chmod is needed to allow for write access within from docker container volume
# - chmod -R go+w ./${UTPLSQL_DIR}/source
- cd ${DOCKER_DIR} && ../.travis/download.sh -p ${DOWNLOAD_NAME}
script:
- pwd && ls -l && docker build --no-cache --force-rm --squash -t ${DOCKHER_HUB_REPO}:${ORACLE_VERSION} .
- docker push ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}