diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..58723389 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,33 @@ +version: 2 +jobs: + build: + working_directory: ~/i3wm-themer + docker: + - image: circleci/python:3.6.4 + steps: + - checkout + - run: sudo chown -R circleci:circleci /usr/local/bin + - run: sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages + - restore_cache: + key: deps10-{{ .Branch }}-{{ checksum "Pipfile.lock" }} + - run: + name: Setup testing environment + command: | + pip install coverage --user + pip install pytest --user + pip install -r requirements.txt + echo $HOME + - save_cache: + key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} + paths: + - ".venv" + - "/usr/local/bin" + - "/usr/local/lib/python3.6/site-packages" + - run: + name: Running tests + command: | + $HOME/.local/bin/coverage run -m pytest + $HOME/.local/bin/coverage report --include="i3wmthemer/*" + $HOME/.local/bin/coverage html + - store_artifacts: + path: htmlcov diff --git a/.gitignore b/.gitignore index 7f316a4d..4cfeadb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,9 @@ -src/__pycache__ -src/*.pyc +test-reports/ +.pytest_cache/ +*__pycache__ +*.pyc +.idea/ +*.iml +./*.png +./*.jpg +.coverage diff --git a/Pipfile b/Pipfile new file mode 100644 index 00000000..e5a18092 --- /dev/null +++ b/Pipfile @@ -0,0 +1,12 @@ +[[source]] +name = "pypi" +url = "https://pypi.org/simple" +verify_ssl = true + +[dev-packages] + +[packages] +PyYAML = "==5.1" + +[requires] +python_version = "3.6" diff --git a/Pipfile.lock b/Pipfile.lock new file mode 100644 index 00000000..be1eadb7 --- /dev/null +++ b/Pipfile.lock @@ -0,0 +1,38 @@ +{ + "_meta": { + "hash": { + "sha256": "5556f4ae619d1b6aee3fb1082beca51e892dfaea4922d4ecbaf22b3f1b5a2c01" + }, + "pipfile-spec": 6, + "requires": { + "python_version": "2.7" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": { + "pyyaml": { + "hashes": [ + "sha256:3d7da3009c0f3e783b2c873687652d83b1bbfd5c88e9813fb7e5b03c0dd3108b", + "sha256:3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf", + "sha256:40c71b8e076d0550b2e6380bada1f1cd1017b882f7e16f09a65be98e017f211a", + "sha256:558dd60b890ba8fd982e05941927a3911dc409a63dcb8b634feaa0cda69330d3", + "sha256:a7c28b45d9f99102fa092bb213aa12e0aaf9a6a1f5e395d36166639c1f96c3a1", + "sha256:aa7dd4a6a427aed7df6fb7f08a580d68d9b118d90310374716ae90b710280af1", + "sha256:bc558586e6045763782014934bfaf39d48b8ae85a2713117d16c39864085c613", + "sha256:d46d7982b62e0729ad0175a9bc7e10a566fc07b224d2c79fafb5e032727eaa04", + "sha256:d5eef459e30b09f5a098b9cea68bebfeb268697f78d647bd255a085371ac7f3f", + "sha256:e01d3203230e1786cd91ccfdc8f8454c8069c91bee3962ad93b87a4b2860f537", + "sha256:e170a9e6fcfd19021dd29845af83bb79236068bf5fd4df3327c1be18182b2531" + ], + "index": "pypi", + "version": "==3.13" + } + }, + "develop": {} +} diff --git a/README.md b/README.md index 4e149d41..277b9671 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,16 @@ -

i3wm-themer

+

i3wm-themer

+ +![](https://img.shields.io/circleci/build/github/unix121/i3wm-themer/master) +![](https://img.shields.io/codacy/coverage/79aa404309114b25bdc87f00107a0b94/master) +![](https://img.shields.io/codacy/grade/79aa404309114b25bdc87f00107a0b94/master) +![](https://img.shields.io/github/last-commit/unix121/i3wm-themer/master) +![](https://img.shields.io/github/license/unix121/i3wm-themer) -

Update [April 4, 2018]

- -

Why?