]>
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 | |
16 | pip install . | |
17 | pip install pylint | |
18 | pylint tap_google_sheets -d C,R,W | |
f1d1d43c | 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 | |
df846916 | 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 | |
954c8d34 KS |
38 | - slack/notify-on-failure: |
39 | only_for_branches: master | |
40 | ||
f1d1d43c | 41 | workflows: |
42 | version: 2 | |
43 | commit: | |
44 | jobs: | |
954c8d34 KS |
45 | - build: |
46 | context: circleci-user | |
f1d1d43c | 47 | build_daily: |
48 | triggers: | |
49 | - schedule: | |
1080d5ec | 50 | cron: "0 15 * * *" |
f1d1d43c | 51 | filters: |
52 | branches: | |
53 | only: | |
54 | - master | |
55 | jobs: | |
954c8d34 KS |
56 | - build: |
57 | context: circleci-user |