Loading .gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -7,3 +7,4 @@ pom.xml.asc *.class /.lein-* /.nrepl-port foo-bar/ .travis.yml 0 → 100644 +6 −0 Original line number Diff line number Diff line language: clojure install: - lein install script: - lein new python foo - cd foo && make test Makefile 0 → 100644 +10 −0 Original line number Diff line number Diff line DEMO_PROJECT_NAME := foo-bar default: test: lein install rm -rf $(DEMO_PROJECT_NAME) lein new python $(DEMO_PROJECT_NAME) cd $(DEMO_PROJECT_NAME) && make test rm -rf $(DEMO_PROJECT_NAME) .PHONY: default test operational +52 −2 Original line number Diff line number Diff line * COMMENT -*- mode: org -*- #+Date: 2014-05-09 Time-stamp: <2019-02-27> Time-stamp: <2019-02-28> #+STARTUP: content * notes :entry: ** 2018-05-02 support test, build and deploy in gocd Loading Loading @@ -57,9 +57,59 @@ Time-stamp: <2019-02-27> virtualenv-$VERSION/LICENSE.txt - update file list in ./src/leiningen/new/python.clj TODO update the code to auto include all files in utils/virtualenv-* dir. * later :entry: ** 2019-02-28 about the two step CD, should I make it 3 step build? 1. test 2. build production docker image 3. on user approve, deploy to production. currently 1 and 2 are run in make ci-build. check the disk space usage. sometimes, trivial doc change doesn't require a docker build. sometimes, version change doesn't require a docker build because of new feature is still WIP and I won't deploy it. - check the disk space usage. base stretch slim is 55MiB. app image is additional 55MiB. the apt-get step 34MiB, unpack deb 21MiB. seems reasonable. Could save 34MiB by including python3, libpq in the base image. - does kubernetes remove old images? yes. The default is when disk space usage is over 85%, it will clean image until it hits 80%. https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/ - 2019-02-28 you can config blacklist in add/edit material. https://docs.gocd.org/current/configuration/admin_add_material.html#blacklist https://docs.gocd.org/current/configuration/configuration_reference.html#ignore Often you do want to specify a set of files that GoCD should ignore when it checks for changes. Repository changesets which contain only these files will not automatically trigger a pipeline. These are detailed in the ignore section of the configuration reference. ignore for this project: #+BEGIN_SRC conf .gitignore,LICENSE,README.md,operational,src/leiningen/new/python/README.rst,src/leiningen/new/python/README-dev.rst,src/leiningen/new/python/gitignore #+END_SRC * current :entry: ** ** 2019-02-28 add gocd support. // was add trivis-ci support. - does trivis-ci send email when build failed? - just create new project on python2.7, python3.5, pypy env. then run "make test" - trivis-ci only support github now. GitLab integration · Issue #5931 · travis-ci/travis-ci · GitHub https://github.com/travis-ci/travis-ci/issues/5931 - maybe add gocd support for it instead. ** 2019-02-24 fix :url in project.clj create a blog post about this template. ** 2016-09-08 support updating site file, deb scripts etc after project is generated. Loading Loading @@ -92,7 +142,7 @@ see example ~/.pylintrc make sure it works on fresh system. use a VM to test it. ** 2014-05-09 add sphinx support * later :entry: * done :entry: ** 2019-02-24 drop :repositories from project.clj ** 2019-02-27 another problem on new created project. Loading project.clj +1 −1 Original line number Diff line number Diff line (defproject python/lein-template "1.5.1" (defproject python/lein-template "1.5.2" :description "lein template for a python project" :url "https://blog.emacsos.com/python-project-template" :license {:name "Eclipse Public License" Loading Loading
.gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -7,3 +7,4 @@ pom.xml.asc *.class /.lein-* /.nrepl-port foo-bar/
.travis.yml 0 → 100644 +6 −0 Original line number Diff line number Diff line language: clojure install: - lein install script: - lein new python foo - cd foo && make test
Makefile 0 → 100644 +10 −0 Original line number Diff line number Diff line DEMO_PROJECT_NAME := foo-bar default: test: lein install rm -rf $(DEMO_PROJECT_NAME) lein new python $(DEMO_PROJECT_NAME) cd $(DEMO_PROJECT_NAME) && make test rm -rf $(DEMO_PROJECT_NAME) .PHONY: default test
operational +52 −2 Original line number Diff line number Diff line * COMMENT -*- mode: org -*- #+Date: 2014-05-09 Time-stamp: <2019-02-27> Time-stamp: <2019-02-28> #+STARTUP: content * notes :entry: ** 2018-05-02 support test, build and deploy in gocd Loading Loading @@ -57,9 +57,59 @@ Time-stamp: <2019-02-27> virtualenv-$VERSION/LICENSE.txt - update file list in ./src/leiningen/new/python.clj TODO update the code to auto include all files in utils/virtualenv-* dir. * later :entry: ** 2019-02-28 about the two step CD, should I make it 3 step build? 1. test 2. build production docker image 3. on user approve, deploy to production. currently 1 and 2 are run in make ci-build. check the disk space usage. sometimes, trivial doc change doesn't require a docker build. sometimes, version change doesn't require a docker build because of new feature is still WIP and I won't deploy it. - check the disk space usage. base stretch slim is 55MiB. app image is additional 55MiB. the apt-get step 34MiB, unpack deb 21MiB. seems reasonable. Could save 34MiB by including python3, libpq in the base image. - does kubernetes remove old images? yes. The default is when disk space usage is over 85%, it will clean image until it hits 80%. https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/ - 2019-02-28 you can config blacklist in add/edit material. https://docs.gocd.org/current/configuration/admin_add_material.html#blacklist https://docs.gocd.org/current/configuration/configuration_reference.html#ignore Often you do want to specify a set of files that GoCD should ignore when it checks for changes. Repository changesets which contain only these files will not automatically trigger a pipeline. These are detailed in the ignore section of the configuration reference. ignore for this project: #+BEGIN_SRC conf .gitignore,LICENSE,README.md,operational,src/leiningen/new/python/README.rst,src/leiningen/new/python/README-dev.rst,src/leiningen/new/python/gitignore #+END_SRC * current :entry: ** ** 2019-02-28 add gocd support. // was add trivis-ci support. - does trivis-ci send email when build failed? - just create new project on python2.7, python3.5, pypy env. then run "make test" - trivis-ci only support github now. GitLab integration · Issue #5931 · travis-ci/travis-ci · GitHub https://github.com/travis-ci/travis-ci/issues/5931 - maybe add gocd support for it instead. ** 2019-02-24 fix :url in project.clj create a blog post about this template. ** 2016-09-08 support updating site file, deb scripts etc after project is generated. Loading Loading @@ -92,7 +142,7 @@ see example ~/.pylintrc make sure it works on fresh system. use a VM to test it. ** 2014-05-09 add sphinx support * later :entry: * done :entry: ** 2019-02-24 drop :repositories from project.clj ** 2019-02-27 another problem on new created project. Loading
project.clj +1 −1 Original line number Diff line number Diff line (defproject python/lein-template "1.5.1" (defproject python/lein-template "1.5.2" :description "lein template for a python project" :url "https://blog.emacsos.com/python-project-template" :license {:name "Eclipse Public License" Loading