diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..94a25f7f4 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 8b3e1cc83..5fa0a6913 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,20 @@ -language: php -php: - - 5.5 - - 5.4 - - hhvm -script: phpunit Test.php +language: python +python: + - 3.6 +notifications: + email: false + +before_install: + - sudo apt-get update + - sudo apt-get -y install python-pip pyflakes + - sudo pip install --upgrade pip + - pip install --upgrade pip + - pip install pep8 + - pip install autopep8 + +script: + # Run pep8 on all .py files in all subfolders + # (I ignore "E402: module level import not at top of file" + # because of use case sys.path.append('..'); import ) + - find . -name \*.py -exec pep8 --ignore=E402 {} + + - find . -name \*.py -exec pyflakes {} + diff --git a/Test.php b/Test.php deleted file mode 100644 index 4b44aa0f9..000000000 --- a/Test.php +++ /dev/null @@ -1,10 +0,0 @@ -assertEquals(1+1,1); - } -} - -?> diff --git a/test.py b/test.py new file mode 100644 index 000000000..6eb9d4d47 --- /dev/null +++ b/test.py @@ -0,0 +1,4 @@ +import numpy as np + +# hoge +np.random.seed(42)