Repository: cassandra-dtest
Updated Branches:
  refs/heads/master bb1d95d6b -> adb0d4ce8


CircleCI configuration

reviewed by Philip Thompson for 
https://github.com/apache/cassandra-dtest/pull/28


Project: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/commit/adb0d4ce
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/tree/adb0d4ce
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/diff/adb0d4ce

Branch: refs/heads/master
Commit: adb0d4ce8bc53fe7fd75ee3dcef91c46ac69e1dd
Parents: bb1d95d
Author: Mick Semb Wever <[email protected]>
Authored: Mon May 14 11:07:30 2018 +1000
Committer: Mick Semb Wever <[email protected]>
Committed: Mon May 14 19:29:15 2018 +1000

----------------------------------------------------------------------
 .circleci/config.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra-dtest/blob/adb0d4ce/.circleci/config.yml
----------------------------------------------------------------------
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..708a8f1
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,29 @@
+version: 2
+jobs:
+   build:
+     docker:
+       - image: circleci/python:2.7
+     steps:
+       - checkout
+       - run:
+          name: Install System Dependencies
+          command: |
+              sudo apt-get update -qq
+              sudo pip install pycodestyle==2.3.1 flake8
+              sudo pip check
+       - run:
+          name: lint
+          command: |
+            # we want pyflakes to check all files for unused imports only
+            # we use flake8 because it allows us to ignore other warnings
+            # exclude the thrift directories - they contain auto-generated code
+            flake8 --ignore=E501,F811,F812,F822,F823,F831,F841,N8,C9 
--exclude=thrift_bindings,cassandra-thrift .
+            git remote add apache git://github.com/apache/cassandra-dtest.git
+            git fetch apache # fetch master for the next diff
+            # feed changed lines with no context around them to pycodestyle
+            # I know we don't enforce line length but if you introduce
+            # 200-char lines you are doing something terribly wrong.
+            # lint all files for everything but line length errors
+            git diff apache/master...HEAD -U0 | pycodestyle --ignore=E501 
--diff
+            # lint all files except json_test.py for line length errors
+            git diff apache/master...HEAD -U0 | pycodestyle --diff 
--exclude='json_test.py' --exclude='meta_tests/assertion_test.py' 
--max-line-length=200
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to