Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Travis CI. #56

Open
wants to merge 102 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
ce38bbf
Connecting to Travis CI.
walter-weinmann Mar 22, 2018
85a9b67
Connecting to Travis CI.
walter-weinmann Mar 22, 2018
7dedcb7
Connecting to Travis CI.
walter-weinmann Mar 22, 2018
c32166e
Connecting to Travis CI.
walter-weinmann Mar 22, 2018
8f6b8cf
Connecting to Travis CI.
walter-weinmann Mar 22, 2018
39d038a
Connecting to Travis CI.
walter-weinmann Mar 22, 2018
055411d
Merge branch 'master' into wwe_travis
walter-weinmann Apr 6, 2018
7c6533d
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
4fa52f5
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
22fe84f
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
99880ed
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
52ab447
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
87ac450
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
adefd5a
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
db634a5
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
0033132
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
d0581ac
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
c0d67a9
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
f9a76b3
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
ce28b85
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
22581b6
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
e6b797b
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
a8814e4
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
05d414e
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
14cb7b9
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
865b2ff
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
1e50fee
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
672b73d
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
b667137
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
da2bdfc
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
67f1796
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
303fd71
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
d25914a
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
f5f3fed
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
8668681
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
8b72a09
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
1eeb328
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
14bec45
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
62d90fb
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
8be2abb
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
e5fd40b
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
23a8464
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
5c230d8
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
d6b576b
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
755b29d
Connecting to Travis CI.
walter-weinmann Apr 6, 2018
f8189f6
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
43fe594
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
adbf6f4
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
15e7298
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
7b9b266
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
88bd466
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
f5a68a8
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
ce575b2
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
c6c3c42
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
4fee754
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
2a9c589
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
56d2aa2
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
6f946fb
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
00e7d3b
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
2f35344
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
e7a0b80
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
da8e10e
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
1b8df95
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
e0a7eb0
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
6a02a5c
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
f964ed3
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
5249aa7
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
b63dcfa
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
23bbe3c
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
ceb60d4
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
545c863
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
f89de11
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
536b687
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
8a107be
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
8460290
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
5f3b236
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
7d57c07
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
a274fc3
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
3a94973
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
803a152
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
8cb2ca9
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
b26e9ce
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
3242f33
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
33b5b45
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
4bde8b3
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
d465d3c
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
dfc48c2
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
d5701d3
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
f479811
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
2b92860
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
cc3f80a
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
603f431
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
d39c776
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
3267232
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
091fc97
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
b8e37d2
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
67e8fec
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
e2819d4
Connecting to Travis CI.
walter-weinmann Apr 7, 2018
e974554
Connecting to Travis CI.
walter-weinmann Apr 8, 2018
d8e0233
Connecting to Travis CI.
walter-weinmann Apr 8, 2018
5b5b02d
Connecting to Travis CI.
walter-weinmann Apr 9, 2018
70ab13d
Connecting to Travis CI.
walter-weinmann Apr 9, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 65 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,75 @@
sudo: true
install:
- wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3

language: erlang
otp_release:
- 20.3
- 20.2

env:
global:
# - ORACLE_LOGIN_userid=
- secure: DbfrrrcALz9sTzpg/JyFA4Ds89my7hYDtqzvVUDpild85/0cG1vEClJY3JQP4FxUxI+4KhS/p4ZIJ3ubtlLJ5SX5v2QWEXmwDmjiMCbqaWgf7wFvqM+r96nZ1TTTKVYQv3oN23TLWy2py618RAOHpQVIN96oK7W19nyq00TaOZ8=
# - ORACLE_LOGIN_pass=
- secure: UUEW6+loLgg+83m8rsezZygw4kRCpM9xZr9rIXOIOzzu+MxpYKXGhAb80j7BeLbrmKcHlLfhPTaWNDZM6F1on9Og+Nn3DtnnMQUTO3nR15VKoHzuZYe6klnhXhjgmncukwUr1Shbh5zlC155HJuF0tonu7mWifSN7aCT1GHKx/Q=

install:
- wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3

- 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

- export ORACLE_COOKIE=ic_linuxx8664
- export ORACLE_DOWNLOAD_DIR=$(pwd)

- export ORACLE_FILE="instantclient/121020/oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm"
- .travis/oracle/download.sh
- export ORACLE_FILE="instantclient/121020/oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm"
- .travis/oracle/download.sh

- sudo apt-get install libevent-dev
- sudo apt-get install alien dpkg-dev debhelper build-essential
- sudo alien oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
- sudo alien oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
- sudo dpkg -i oracle-instantclient12.1-basic_12.1.0.2.0-2_amd64.deb
- sudo dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb

- export ORACLE_COOKIE=sqldev
- export ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
- export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
- export ORACLE_SID=XE

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

- echo "CREATE USER scott IDENTIFIED BY tiger ACCOUNT UNLOCK;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT CONNECT TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT RESOURCE TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "ALTER USER scott DEFAULT ROLE ALL;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT ALTER SESSION TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT ALTER SYSTEM TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT CREATE ANY DIRECTORY TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT CREATE DATABASE LINK TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT CREATE SEQUENCE TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT CREATE SESSION TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT CREATE SYNONYM TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT CREATE VIEW TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT DROP ANY DIRECTORY TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT EXECUTE ON SYS.DBMS_STATS TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT SELECT ON SYS.GV_$PROCESS TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA
- echo "GRANT SELECT ON SYS.GV_$SESSION TO scott;" | $ORACLE_HOME/bin/sqlplus / AS SYSDBA

script:
- export ERL_INTERFACE_DIR=$(ls -d /home/travis/otp/${TRAVIS_OTP_RELEASE}/lib/erl_interface-*)
- export INSTANT_CLIENT_LIB_PATH="/usr/lib/oracle/12.1/client64/lib/"
- export INSTANT_CLIENT_INCLUDE_PATH="/usr/include/oracle/12.1/client64/"

- ./rebar3 compile
- ./rebar3 ct
# - ./rebar3 ct % Bikram ???
- ./rebar3 eunit
- ./rebar3 cover
- export DEBUG=1
- ./rebar3 as test coveralls send
- export DEBUG=
# - ./rebar3 dialyzer % Bikram ???
- ./rebar3 as test geas
4 changes: 0 additions & 4 deletions cover.spec

This file was deleted.

20 changes: 14 additions & 6 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{cover_enabled, true}.
{cover_export_enabled, true}.
{cover_opts, [verbose]}.

% "_build/test/cover/ct.coverdata",
{coveralls_coverdata, [
"_build/test/cover/eunit.coverdata"
]}.
{coveralls_service_name, "travis-ci"}.

{ct_cover, true}.
{ct_verbose, true}.
Expand All @@ -15,11 +23,11 @@
]}.

{profiles, [
{test, [
{plugins, [
{coveralls, {git, "https://github.com/markusn/coveralls-erl", {branch, "master"}}},
{geas_rebar3, {git, "https://github.com/crownedgrouse/geas_rebar3.git", {branch, "master"}}}
]}
]}
{test, [
{plugins, [
{coveralls, {git, "https://github.com/markusn/coveralls-erl", {branch, "master"}}},
{geas_rebar3, {git, "https://github.com/crownedgrouse/geas_rebar3.git", {branch, "master"}}}
]}
]}
]}.

2 changes: 1 addition & 1 deletion rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
lists:keystore(coveralls_service_job_id, 1, CONFIG,
{coveralls_service_job_id, JobId});
{coveralls_service_job_id, JobId});
_ ->
CONFIG
end.