forked from domgiles/orcl-ws-cicd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
29 lines (28 loc) · 1.11 KB
/
wercker.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
build:
box: python:3.7
steps:
# Step 1: create virtual enviroment and install dependencies
- script:
name: install dependencies
code: |
python3 -m venv orclvenv
. orclvenv/bin/activate
pip install -r requirements.pip
# Step 2: install Oracle client basic lite
- script:
name: install oracle-instantclient19.6
code: |
echo "deb http://ftp.debian.org/debian experimental main" >> /etc/apt/sources.list
apt-get update
apt-get install -y alien
apt-get install -y libaio1
wget https://download.oracle.com/otn_software/linux/instantclient/19600/oracle-instantclient19.6-basiclite-19.6.0.0.0-1.x86_64.rpm
alien -i oracle-instantclient19.6-basiclite-19.6.0.0.0-1.x86_64.rpm
export LD_LIBRARY_PATH=/usr/lib/oracle/19.6/client64/lib:$LD_LIBRARY_PATH
# Step 3: run linter and tests
- script:
name: run tests
code: |
. orclvenv/bin/activate
flake8 --exclude=orclvenv* --statistics
pytest -v --cov=promotion