fixing CI

This commit is contained in:
Kononnable 2019-01-16 23:09:18 +01:00
parent 8f6b1a06f3
commit 2a234d597d

View File

@ -34,9 +34,9 @@ before_install:
- sudo service postgresql stop
- if [ -z "$DOCKER_USERNAME" ]; then echo "DOCKER_USERNAME is unset"; else echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin; fi
- if [ -z "$DOCKER_USERNAME" ]; then export ORACLE_Skip=1; else images=(${images[@]} oracle oracle_client); fi
- echo $images
- docker-compose pull --parallel --ignore-pull-failures $images
- docker-compose up -d $images
- echo ${images[@]}
- docker-compose pull --parallel --ignore-pull-failures ${images[@]}
- docker-compose up -d ${images[@]}
before_script:
- if [ -n "$DOCKER_USERNAME" ]; then mkdir /opt/oracle; npm i oracledb --no-save; docker cp typeorm-mg-oracle-client:/usr/lib/oracle/12.2/client64/lib /opt/oracle/instantclient_12_2; fi
- export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2:$LD_LIBRARY_PATH