-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
35 lines (35 loc) · 1.95 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
language: rust
dist: bionic
sudo: required
services:
- docker
cache:
cargo: true
directories:
- download/
env:
- OCI_LIB_DIR=$HOME/instantclient_12_2/ LD_LIBRARY_PATH=$HOME/instantclient_12_2/ OCI_DATABASE_URL=oci://SYSTEM/travis@//localhost:1521/travis
before_install:
- mkdir download || true
- wget --http-user "$SSO_GIGA_USER" --http-password "$SSO_PWD" https://support.giga-infosystems.com/3rdparty/oracle/instantclient-sdk-linux.x64-12.2.0.1.0.zip -q -O "./download/instantclient-sdk-linux.x64-12.2.0.1.0.zip" && unzip "./download/instantclient-sdk-linux.x64-12.2.0.1.0.zip"
- wget --http-user "$SSO_GIGA_USER" --http-password "$SSO_PWD" https://support.giga-infosystems.com/3rdparty/oracle/instantclient-basiclite-linux.x64-12.2.0.1.0.zip -q -O "./download/instantclient-basiclite-linux.x64-12.2.0.1.0.zip" && unzip "./download/instantclient-basiclite-linux.x64-12.2.0.1.0.zip"
- sudo cp -R instantclient_12_2/* /usr/lib/
- sudo ln -s /usr/lib/libclntsh.so.12.1 /usr/lib/libclntsh.so
- sudo ln -s /usr/lib/libocci.so.12.1 /usr/lib/libocci.so
# - if ! [ -f ./download/linuxx64_12201_database.zip ]; then
# wget --http-user "$SSO_GIGA_USER" --http-password "$SSO_PWD" https://support.giga-infosystems.com/3rdparty/oracle/V839960-01.zip -q -O "./download/linuxx64_12201_database.zip";
# fi
# - cp "./download/linuxx64_12201_database.zip" ".travis/ora/12.2.0.1/linuxx64_12201_database.zip"
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
# - .travis/ora/buildDocker.sh -v 12.2.0.1 -s
# - docker tag oracle/database:12.2.0.1-se2 pgab/oracle:12.2.0.1-se2
- docker pull pgab/oracle:12.2.0.1-se2
- docker run -d -p 127.0.0.1:1521:1521 -e ORACLE_SID=travis -e ORACLE_PWD=travis -e ORACLE_CHARACTERSET=UTF8 pgab/oracle:12.2.0.1-se2
before_script:
- export PATH=$HOME/.local/bin:$PATH
- ./wait-for-oralce.sh
rust:
- nightly-2019-11-16
script:
- |
cargo test --package diesel-oci -- --exact --test-threads=1