Skip to content

Commit

Permalink
Merge pull request #3 from ki11men0w/feature/travis-ci
Browse files Browse the repository at this point in the history
fixup! Download oracle client library for CI build
  • Loading branch information
ki11men0w authored May 29, 2017
2 parents c4b32b3 + fd2ea5c commit 77a6649
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dist
_orig*
lib
15 changes: 5 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@ before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# Download oracle instant client library
- mkdir -p ./lib
- travis_retry curl -L https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libclntsh.so.12.1.gz > ./lib/libclntsh.so.12.1.gz
- travis_retry curl -L https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libclntshcore.so.12.1.gz > ./lib/libclntshcore.so.12.1.gz
- travis_retry curl -L https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libipc1.so.gz > ./lib/libipc1.so.gz
- travis_retry curl -L https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libmql1.so.gz > ./lib/libmql1.so.gz
- travis_retry curl -L https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libnnz12.so.gz > ./lib/libnnz12.so.gz
- travis_retry curl -L https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libons.so.gz > ./lib/libons.so.gz
- gzip -d ./lib/*.gz
- ln -s libclntsh.so.12.1 ./lib/libclntsh.so
# Add directory with instant client librariesto linker
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/lib/

install:
# Download oracle instant client library
- ci/install-instantclient.sh

# This line does all of the work: installs GHC if necessary, build the library,
# executables, and test suites, and runs the test suites. --no-terminal works
# around some quirks in Travis's terminal implementation.
Expand Down
11 changes: 11 additions & 0 deletions ci/install-instantclient.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

mkdir -p ./lib
curl -L --retry 5 https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libclntsh.so.12.1.gz > ./lib/libclntsh.so.12.1.gz
curl -L --retry 5 https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libclntshcore.so.12.1.gz > ./lib/libclntshcore.so.12.1.gz
curl -L --retry 5 https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libipc1.so.gz > ./lib/libipc1.so.gz
curl -L --retry 5 https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libmql1.so.gz > ./lib/libmql1.so.gz
curl -L --retry 5 https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libnnz12.so.gz > ./lib/libnnz12.so.gz
curl -L --retry 5 https://github.com/ki11men0w/resources/raw/master/oracle/instantclient/libons.so.gz > ./lib/libons.so.gz
gzip -d ./lib/*.gz
ln -s libclntsh.so.12.1 ./lib/libclntsh.so

0 comments on commit 77a6649

Please sign in to comment.