]>
Commit | Line | Data |
---|---|---|
954c8d34 KS |
1 | version: 2.1 |
2 | orbs: | |
3 | slack: circleci/slack@3.4.2 | |
4 | ||
f1d1d43c | 5 | jobs: |
6 | build: | |
7 | docker: | |
9079d8c7 | 8 | - image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:tap-tester-v4 |
f1d1d43c | 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 | |
a7557537 | 16 | pip install .[dev] |
f1d1d43c | 17 | pylint tap_google_sheets -d C,R,W |
f1d1d43c | 18 | - run: |
19 | name: 'JSON Validator' | |
20 | command: | | |
21 | source /usr/local/share/virtualenvs/tap-tester/bin/activate | |
a7557537 | 22 | stitch-validate-json ~/.virtualenvs/tap-google-sheets/lib/python3.8/site-packages/tap_google_sheets/schemas/*.json |
f1d1d43c | 23 | - add_ssh_keys |
24 | - run: | |
25 | name: 'Integration Tests' | |
26 | command: | | |
27 | aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/sandbox dev_env.sh | |
28 | source dev_env.sh | |
29 | source /usr/local/share/virtualenvs/tap-tester/bin/activate | |
df846916 | 30 | run-test --tap=tap-google-sheets \ |
31 | --target=target-stitch \ | |
32 | --orchestrator=stitch-orchestrator \ | |
33 | --email=harrison+sandboxtest@stitchdata.com \ | |
34 | --password=$SANDBOX_PASSWORD \ | |
35 | --client-id=50 \ | |
36 | tests/tap_combined_test.py | |
954c8d34 KS |
37 | - slack/notify-on-failure: |
38 | only_for_branches: master | |
39 | ||
f1d1d43c | 40 | workflows: |
41 | version: 2 | |
42 | commit: | |
43 | jobs: | |
954c8d34 KS |
44 | - build: |
45 | context: circleci-user | |
f1d1d43c | 46 | build_daily: |
47 | triggers: | |
48 | - schedule: | |
1080d5ec | 49 | cron: "0 15 * * *" |
f1d1d43c | 50 | filters: |
51 | branches: | |
52 | only: | |
53 | - master | |
54 | jobs: | |
954c8d34 KS |
55 | - build: |
56 | context: circleci-user |