]> git.immae.eu Git - github/fretlink/tap-google-sheets.git/blob - .circleci/config.yml
use the v4 image for tap-tester (#30)
[github/fretlink/tap-google-sheets.git] / .circleci / config.yml
1 version: 2.1
2 orbs:
3 slack: circleci/slack@3.4.2
4
5 jobs:
6 build:
7 docker:
8 - image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:tap-tester-v4
9 steps:
10 - checkout
11 - run:
12 name: 'Setup virtual env'
13 command: |
14 virtualenv -p python3 ~/.virtualenvs/tap-google-sheets
15 source ~/.virtualenvs/tap-google-sheets/bin/activate
16 pip install .
17 pip install pylint
18 pylint tap_google_sheets -d C,R,W
19 - run:
20 name: 'JSON Validator'
21 command: |
22 source /usr/local/share/virtualenvs/tap-tester/bin/activate
23 stitch-validate-json ~/.virtualenvs/tap-google-sheets/lib/python3.5/site-packages/tap_google_sheets/schemas/*.json
24 - add_ssh_keys
25 - run:
26 name: 'Integration Tests'
27 command: |
28 aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/sandbox dev_env.sh
29 source dev_env.sh
30 source /usr/local/share/virtualenvs/tap-tester/bin/activate
31 run-test --tap=tap-google-sheets \
32 --target=target-stitch \
33 --orchestrator=stitch-orchestrator \
34 --email=harrison+sandboxtest@stitchdata.com \
35 --password=$SANDBOX_PASSWORD \
36 --client-id=50 \
37 tests/tap_combined_test.py
38 - slack/notify-on-failure:
39 only_for_branches: master
40
41 workflows:
42 version: 2
43 commit:
44 jobs:
45 - build:
46 context: circleci-user
47 build_daily:
48 triggers:
49 - schedule:
50 cron: "0 15 * * *"
51 filters:
52 branches:
53 only:
54 - master
55 jobs:
56 - build:
57 context: circleci-user