]> git.immae.eu Git - github/fretlink/tap-google-sheets.git/commitdiff
Add cicleci config (#3)
authorcosimon <cosimon@users.noreply.github.com>
Fri, 24 Jan 2020 20:40:57 +0000 (15:40 -0500)
committerGitHub <noreply@github.com>
Fri, 24 Jan 2020 20:40:57 +0000 (15:40 -0500)
* Add cicleci config

* Empty commit

* Fix typo in run command

.circleci/config.yml [new file with mode: 0644]

diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644 (file)
index 0000000..fb0569b
--- /dev/null
@@ -0,0 +1,55 @@
+version: 2
+jobs:
+  build:
+    docker:
+      - image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:tap-tester
+    steps:
+      - checkout
+      - run:
+          name: 'Setup virtual env'
+          command: |
+            virtualenv -p python3 ~/.virtualenvs/tap-google-sheets
+            source ~/.virtualenvs/tap-google-sheets/bin/activate
+            pip install .
+            pip install pylint
+            pylint tap_google_sheets -d C,R,W
+      - run:
+          name: 'Unit Tests'
+          command: |
+            source ~/.virtualenvs/tap-google-sheets/bin/activate
+            pip install nose
+            nosetests
+      - run:
+          name: 'JSON Validator'
+          command: |
+            source /usr/local/share/virtualenvs/tap-tester/bin/activate
+            stitch-validate-json ~/.virtualenvs/tap-google-sheets/lib/python3.5/site-packages/tap_google_sheets/schemas/*.json
+      - add_ssh_keys
+      - run:
+          name: 'Integration Tests'
+          command: |
+            aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/sandbox dev_env.sh
+            source dev_env.sh
+            source /usr/local/share/virtualenvs/tap-tester/bin/activate
+            run-a-test --tap=tap-google-sheets \
+                       --target=target-stitch \
+                       --orchestrator=stitch-orchestrator \
+                       --email=harrison+sandboxtest@stitchdata.com \
+                       --password=$SANDBOX_PASSWORD \
+                       --client-id=50 \
+                       tap_tester.suites.google_sheets
+workflows:
+  version: 2
+  commit:
+    jobs:
+      - build
+  build_daily:
+    triggers:
+      - schedule:
+          cron: "0 0 * * *"
+          filters:
+            branches:
+              only:
+                - master
+    jobs:
+      - build