aboutsummaryrefslogtreecommitdiffhomepage
path: root/.circleci
diff options
context:
space:
mode:
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml55
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 @@
1version: 2
2jobs:
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
41workflows:
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