-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathconfig.yml
61 lines (59 loc) · 2.01 KB
/
config.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: 2.1
orbs:
slack: circleci/[email protected]
jobs:
build:
docker:
- image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:stitch-tap-tester-18.04
- image: singerio/postgres:9.6-wal2json-2.2-ssl
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
command: [postgres, -c, config_file=/usr/local/share/postgresql/postgresql.conf]
steps:
- checkout
- run:
name: 'Setup virtual env'
command: |
aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/tap_tester_sandbox dev_env.sh
source dev_env.sh
export LC_ALL=C
apt-get -qq update
apt-get -qq install bundler libpq-dev
pyenv local 3.5.6
python3 -m venv /usr/local/share/virtualenvs/tap-postgres
source /usr/local/share/virtualenvs/tap-postgres/bin/activate
pip install -U 'pip<19.2' 'setuptools<51.0.0'
pip install .[dev]
source dev_env.sh
make test
pylint tap_postgres -d missing-docstring,invalid-name,line-too-long,too-many-locals,too-few-public-methods,fixme,stop-iteration-return,duplicate-code,useless-import-alias,bare-except,raise-missing-from
- run:
when: always
name: 'Integration Tests'
command: |
source dev_env.sh
source /usr/local/share/virtualenvs/tap-tester/bin/activate
apt-get -qq update
apt-get -qq install bundler libpq-dev
pip install psycopg2==2.8.4
run-test --tap=tap-postgres tests
- slack/notify-on-failure:
only_for_branches: master
workflows:
version: 2
commit: &commit_jobs
jobs:
- build:
context:
- circleci-user
- tap-tester-user
build_daily:
<<: *commit_jobs
triggers:
- schedule:
cron: "0 1 * * *"
filters:
branches:
only:
- master