diff options
author | cosimon <cosimon@users.noreply.github.com> | 2020-01-24 15:40:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 15:40:57 -0500 |
commit | f1d1d43c6b74a8705e91e908c582e39c68464c0c (patch) | |
tree | a320270632ed8d9325ba00f186b355fc6a692b18 /.circleci/config.yml | |
parent | 43a24cbab1dbc35b893c35b86e34adc0f2fb84e7 (diff) | |
download | tap-google-sheets-f1d1d43c6b74a8705e91e908c582e39c68464c0c.tar.gz tap-google-sheets-f1d1d43c6b74a8705e91e908c582e39c68464c0c.tar.zst tap-google-sheets-f1d1d43c6b74a8705e91e908c582e39c68464c0c.zip |
Add cicleci config (#3)
* Add cicleci config
* Empty commit
* Fix typo in run command
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..fb0569b --- /dev/null +++ b/.circleci/config.yml | |||
@@ -0,0 +1,55 @@ | |||
1 | version: 2 | ||
2 | jobs: | ||
3 | build: | ||
4 | docker: | ||
5 | - image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:tap-tester | ||
6 | steps: | ||
7 | - checkout | ||
8 | - run: | ||
9 | name: 'Setup virtual env' | ||
10 | command: | | ||
11 | virtualenv -p python3 ~/.virtualenvs/tap-google-sheets | ||
12 | source ~/.virtualenvs/tap-google-sheets/bin/activate | ||
13 | pip install . | ||
14 | pip install pylint | ||
15 | pylint tap_google_sheets -d C,R,W | ||
16 | - run: | ||
17 | name: 'Unit Tests' | ||
18 | command: | | ||
19 | source ~/.virtualenvs/tap-google-sheets/bin/activate | ||
20 | pip install nose | ||
21 | nosetests | ||
22 | - run: | ||
23 | name: 'JSON Validator' | ||
24 | command: | | ||
25 | source /usr/local/share/virtualenvs/tap-tester/bin/activate | ||
26 | stitch-validate-json ~/.virtualenvs/tap-google-sheets/lib/python3.5/site-packages/tap_google_sheets/schemas/*.json | ||
27 | - add_ssh_keys | ||
28 | - run: | ||
29 | name: 'Integration Tests' | ||
30 | command: | | ||
31 | aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/sandbox dev_env.sh | ||
32 | source dev_env.sh | ||
33 | source /usr/local/share/virtualenvs/tap-tester/bin/activate | ||
34 | run-a-test --tap=tap-google-sheets \ | ||
35 | --target=target-stitch \ | ||
36 | --orchestrator=stitch-orchestrator \ | ||
37 | --email=harrison+sandboxtest@stitchdata.com \ | ||
38 | --password=$SANDBOX_PASSWORD \ | ||
39 | --client-id=50 \ | ||
40 | tap_tester.suites.google_sheets | ||
41 | workflows: | ||
42 | version: 2 | ||
43 | commit: | ||
44 | jobs: | ||
45 | - build | ||
46 | build_daily: | ||
47 | triggers: | ||
48 | - schedule: | ||
49 | cron: "0 0 * * *" | ||
50 | filters: | ||
51 | branches: | ||
52 | only: | ||
53 | - master | ||
54 | jobs: | ||
55 | - build | ||