From 1eff98a1b8f12c41fafa6779073dc60e96e27a21 Mon Sep 17 00:00:00 2001 From: Pradip Caulagi Date: Sun, 4 Jun 2017 16:45:06 +0200 Subject: [PATCH 1/2] Trying wercker --- wercker.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 wercker.yml diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..0787826 --- /dev/null +++ b/wercker.yml @@ -0,0 +1,51 @@ +# This references the default Python container from +# the Docker Hub with the 2.7 tag: +# https://registry.hub.docker.com/_/python/ +# If you want to use a slim Python container with +# version 3.4.3 you would use: python:3.4-slim +# If you want Google's container you would reference google/python +# Read more about containers on our dev center +# http://devcenter.wercker.com/docs/containers/index.html +box: python:3.6.1 +# You can also use services such as databases. Read more on our dev center: +# http://devcenter.wercker.com/docs/services/index.html +# services: + # - postgres + # http://devcenter.wercker.com/docs/services/postgresql.html + + # - mongo + # http://devcenter.wercker.com/docs/services/mongodb.html + +# This is the build pipeline. Pipelines are the core of wercker +# Read more about pipelines on our dev center +# http://devcenter.wercker.com/docs/pipelines/index.html +build: + # The steps that will be executed on build + # Steps make up the actions in your pipeline + # Read more about steps on our dev center: + # http://devcenter.wercker.com/docs/steps/index.html + steps: + # A step that sets up the python virtual environment + - virtualenv: + name: setup virtual environment + install_wheel: false # Enable wheel to speed up builds (experimental) + + # # Use this virtualenv step for python 3.2 + # - virtualenv + # name: setup virtual environment + # python_location: /usr/bin/python3.2 + + # A step that executes `pip install` command. + - pip-install + + # # This pip-install clears the local wheel cache + # - pip-install: + # clean_wheel_dir: true + + # A custom script step, name value is used in the UI + # and the code value contains the command that get executed + - script: + name: echo python information + code: | + echo "python version $(python --version) running" + echo "pip version $(pip --version) running" From 20aaf3d745ffa4b6cef5c558e62c26ff23a770b0 Mon Sep 17 00:00:00 2001 From: Pradip Caulagi Date: Sun, 4 Jun 2017 18:58:24 +0200 Subject: [PATCH 2/2] Tidy wercker yml --- .gitignore | 1 + wercker.yml | 34 +++------------------------------- 2 files changed, 4 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 942e6c8..bb5779c 100644 --- a/.gitignore +++ b/.gitignore @@ -101,3 +101,4 @@ ENV/ .mypy_cache/ db.sqlite3 +.wercker diff --git a/wercker.yml b/wercker.yml index 0787826..7baded9 100644 --- a/wercker.yml +++ b/wercker.yml @@ -1,49 +1,21 @@ -# This references the default Python container from -# the Docker Hub with the 2.7 tag: -# https://registry.hub.docker.com/_/python/ -# If you want to use a slim Python container with -# version 3.4.3 you would use: python:3.4-slim -# If you want Google's container you would reference google/python -# Read more about containers on our dev center -# http://devcenter.wercker.com/docs/containers/index.html box: python:3.6.1 -# You can also use services such as databases. Read more on our dev center: # http://devcenter.wercker.com/docs/services/index.html # services: # - postgres # http://devcenter.wercker.com/docs/services/postgresql.html - - # - mongo - # http://devcenter.wercker.com/docs/services/mongodb.html - -# This is the build pipeline. Pipelines are the core of wercker -# Read more about pipelines on our dev center -# http://devcenter.wercker.com/docs/pipelines/index.html build: - # The steps that will be executed on build - # Steps make up the actions in your pipeline - # Read more about steps on our dev center: - # http://devcenter.wercker.com/docs/steps/index.html steps: - # A step that sets up the python virtual environment - virtualenv: name: setup virtual environment + python_location: /usr/local/bin/python3.6 install_wheel: false # Enable wheel to speed up builds (experimental) - # # Use this virtualenv step for python 3.2 - # - virtualenv - # name: setup virtual environment - # python_location: /usr/bin/python3.2 - - # A step that executes `pip install` command. - - pip-install + - pip-install: + requirements_file: "requirements/common.txt" - # # This pip-install clears the local wheel cache # - pip-install: # clean_wheel_dir: true - # A custom script step, name value is used in the UI - # and the code value contains the command that get executed - script: name: echo python information code: |