-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy path.travis.yml
More file actions
102 lines (90 loc) · 2.85 KB
/
.travis.yml
File metadata and controls
102 lines (90 loc) · 2.85 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
sudo: required
language: python
env:
global:
#- 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
#- NLS_LANG=AMERICAN_AMERICA.AL32UTF8
#- ORACLE_BASE=/u01/app/oracle
#- LD_LIBRARY_PATH=$ORACLE_HOME/lib
#- PATH=$PATH:$ORACLE_HOME/jdbc/lib:$ORACLE_HOME/bin
#- DATABASE_VERSION=11.2.0.2
#- ORACLE_SID=XE
#- DATABASE_NAME=XE
#- ORA_SDTZ='Europe/London' #Needed as a client parameter
#- TZ='Europe/London' #Needed as a DB Server parameter
- 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
addons:
apt:
packages:
#packages required by oracle
#- bc
#- rpm
- unzip
- oracle-java8-set-default
services:
- docker
cache:
directories:
#- .cache
#- $HOME/.cache
- $CACHE_DIR
#before_install:
# On trusty, download the zip file into a cachable directory
#- test "$DIST" = precise || export ORACLE_ZIP_DIR=$CACHE_DIR
# If the zip file already exists, do not download it again
#- test -f "$ORACLE_ZIP_DIR"/$(basename $ORACLE_FILE) || bash .travis/oracle/download.sh
install:
- sudo pip install -r .travis/python_req.txt
- npm install -g phantomjs-prebuilt casperjs
- bash .travis/install_sqlcl.sh
- bash .travis/start_db.sh
#- bash .travis/oracle/install.sh
script:
- CONTAINER_IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $ORACLE_VERSION)
- test $ORACLE_VERSION = $ORACLE_12cR1SE || CONNECTION_STR="$CONTAINER_IP:1521/ORCLPDB1"
- test $ORACLE_VERSION = $ORACLE_11gR2XE || CONNECTION_STR="$CONTAINER_IP:1521/XE"
- 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
# 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