From 702424115603e6b9600eacbe0a3825b4f1bce238 Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:18:35 -0700 Subject: [PATCH 1/8] Add circle config --- .circleci/config.yml | 20 ++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..f4f792b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,20 @@ +version: 2.1 +jobs: + build: + working_directory: ~/wayscript-python + steps: + - checkout + - run: sudo chown -R circleci:circleci /usr/local/bin + - run: sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages + - run: + command: | + sudo pip install pipenv + pipenv install + - run: + command: | + pipenv run python -m unittest discover + - store_test_results: + path: test-results + - store_artifacts: + path: test-results + destination: tr1 diff --git a/.gitignore b/.gitignore index abd9cab..2989751 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,5 @@ ENV/ # PyCharm .idea + +*/__pycache__/ From 1c2652933d42adac838084e5df4096e20d02eeb5 Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:23:39 -0700 Subject: [PATCH 2/8] Add docker image --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f4f792b..d00138e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,8 @@ version: 2.1 jobs: - build: + test: + docker: + - image: circleci/python:3.6.8 working_directory: ~/wayscript-python steps: - checkout From e66dc960426277b467f3d9e432a47efce0e79ef6 Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:27:41 -0700 Subject: [PATCH 3/8] build --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d00138e..54940b4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2.1 jobs: - test: + build: docker: - image: circleci/python:3.6.8 working_directory: ~/wayscript-python From 3f393002adbedb29c27670abfd0efcdb84332231 Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:28:52 -0700 Subject: [PATCH 4/8] requests --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 54940b4..bb4bcc4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,6 +12,7 @@ jobs: command: | sudo pip install pipenv pipenv install + sudo pip install requests - run: command: | pipenv run python -m unittest discover From 5bf89eedcc8be13ce84d23f9adfaa88cca67fa1d Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:30:45 -0700 Subject: [PATCH 5/8] pipenv --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bb4bcc4..62f4cd9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ jobs: command: | sudo pip install pipenv pipenv install - sudo pip install requests + pipenv run pip install requests - run: command: | pipenv run python -m unittest discover From 84f7e1d13f5d6750bfd9eac63ca48c25bf8dae21 Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:33:07 -0700 Subject: [PATCH 6/8] mkdir --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 62f4cd9..d01119a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,7 @@ jobs: - run: command: | pipenv run python -m unittest discover + - run: mkdir test-results - store_test_results: path: test-results - store_artifacts: From a693fc2d3bf9d4ecab4cbc4e1b8993de87ea39a9 Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:34:58 -0700 Subject: [PATCH 7/8] fix --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d01119a..ea56d67 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,4 +21,4 @@ jobs: path: test-results - store_artifacts: path: test-results - destination: tr1 + destination: test-results From bebc170e48a37b8cbaafdc90d57190c53d0e91d2 Mon Sep 17 00:00:00 2001 From: Jeff Buswell Date: Wed, 17 Apr 2019 14:41:56 -0700 Subject: [PATCH 8/8] Circle badge --- .circleci/config.yml | 15 +++++++-------- README.md | 2 ++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ea56d67..1b81806 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,19 +6,18 @@ jobs: working_directory: ~/wayscript-python steps: - checkout - - run: sudo chown -R circleci:circleci /usr/local/bin - - run: sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages - run: + name: chown + command: | + sudo chown -R circleci:circleci /usr/local/bin + sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages + - run: + name : Install command: | sudo pip install pipenv pipenv install pipenv run pip install requests - run: + name: Run tests command: | pipenv run python -m unittest discover - - run: mkdir test-results - - store_test_results: - path: test-results - - store_artifacts: - path: test-results - destination: test-results diff --git a/README.md b/README.md index ae29fa9..1f7dfc7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # [WayScript](https://wayscript.com) Python SDK +[![CircleCI](https://circleci.com/gh/wayscript/wayscript-python/tree/master.svg?style=shield)](https://circleci.com/gh/wayscript/wayscript-python/tree/master) + ### A new way to build software. * WayScript gives you flexible building blocks to seamlessly integrate, automate and host tools in the cloud. Unlock new potential with drag and drop programming.