From f3f932e1e31c7f16f9f90d8749d4dea4e6a12546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Mon, 29 Mar 2021 13:53:59 +0200 Subject: [PATCH] switch from travis to circleCI --- .circleci/config.yml | 27 +++++++++++++++++++++++ .travis.yml | 52 -------------------------------------------- README.md | 2 +- 3 files changed, 28 insertions(+), 53 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..745bd4a --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,27 @@ +version: 2.1 + +orbs: + python: circleci/python@0.2.1 + +jobs: + build-and-test: + executor: python/default + steps: + - checkout + - python/load-cache + - python/install-deps + - python/save-cache + - run: + command: | + pip install -r requirements.txt + name: Install necessary modules + - run: + command: | + cd example + DEBUG=1 python setup.py test + name: Test + +workflows: + main: + jobs: + - build-and-test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e916385..0000000 --- a/.travis.yml +++ /dev/null @@ -1,52 +0,0 @@ -language: python -python: - - "3.5" - - "3.6" - - "3.7" - - "3.8" - - "nightly" -jobs: - include: - - stage: test - python: "3.5" - env: - - DEBUG=1 - script: - - cd example - - python setup.py test - - stage: test - python: "3.6" - env: - - DEBUG=1 - script: - - cd example - - python setup.py test - - stage: test - python: "3.7" - env: - - DEBUG=1 - script: - - cd example - - python setup.py test - - stage: test - python: "3.8" - env: - - DEBUG=1 - script: - - cd example - - python setup.py test - - stage: test - python: "nightly" - env: - - DEBUG=1 - script: - - cd example - - python setup.py test -cache: pip -install: - - pip install -r requirements.txt - - python setup.py install -after_success: - - cd .. - - bash build.sh - diff --git a/README.md b/README.md index cb8b2bf..f8fcd82 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ snakehouse ========== -[](https://travis-ci.org/smok-serwis/snakehouse) +[](https://github.com/smok-serwis/snakehouse) [](https://codeclimate.com/github/smok-serwis/snakehouse) [](https://codeclimate.com/github/smok-serwis/snakehouse) [](https://pypi.python.org/pypi/snakehouse) -- GitLab