]>
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: | |
8 | - image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:tap-tester | |
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: 'Unit Tests' | |
21 | command: | | |
22 | source ~/.virtualenvs/tap-google-sheets/bin/activate | |
23 | pip install nose | |
24 | nosetests | |
25 | - run: | |
26 | name: 'JSON Validator' | |
27 | command: | | |
28 | source /usr/local/share/virtualenvs/tap-tester/bin/activate | |
29 | stitch-validate-json ~/.virtualenvs/tap-google-sheets/lib/python3.5/site-packages/tap_google_sheets/schemas/*.json | |
30 | - add_ssh_keys | |
31 | - run: | |
32 | name: 'Integration Tests' | |
33 | command: | | |
34 | aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/sandbox dev_env.sh | |
35 | source dev_env.sh | |
36 | source /usr/local/share/virtualenvs/tap-tester/bin/activate | |
37 | run-a-test --tap=tap-google-sheets \ | |
38 | --target=target-stitch \ | |
39 | --orchestrator=stitch-orchestrator \ | |
40 | --email=harrison+sandboxtest@stitchdata.com \ | |
41 | --password=$SANDBOX_PASSWORD \ | |
42 | --client-id=50 \ | |
43 | tap_tester.suites.google_sheets | |
954c8d34 KS |
44 | - slack/notify-on-failure: |
45 | only_for_branches: master | |
46 | ||
f1d1d43c | 47 | workflows: |
48 | version: 2 | |
49 | commit: | |
50 | jobs: | |
954c8d34 KS |
51 | - build: |
52 | context: circleci-user | |
f1d1d43c | 53 | build_daily: |
54 | triggers: | |
55 | - schedule: | |
56 | cron: "0 0 * * *" | |
57 | filters: | |
58 | branches: | |
59 | only: | |
60 | - master | |
61 | jobs: | |
954c8d34 KS |
62 | - build: |
63 | context: circleci-user |