Skip to content

Commit

Permalink
Merge 86f18c7 into 8edd880
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed May 7, 2019
2 parents 8edd880 + 86f18c7 commit b96fde8
Showing 1 changed file with 61 additions and 6 deletions.
67 changes: 61 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
# convenience makefile to boostrap & run buildout
# keep in sync with: https://github.com/kitconcept/buildout/edit/master/Makefile
# update by running 'make update'
SHELL := /bin/bash
CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

version = 2.7

# We like colors
# From: https://coderwall.com/p/izxssa/colored-makefile-for-golang-projects
RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`
YELLOW=`tput setaf 3`

all: .installed.cfg
bin/test

# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
.PHONY: help
help: ## This help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: Update Makefile and Buildout
update: ## Update Make and Buildout
wget -O Makefile https://raw.githubusercontent.com/kitconcept/buildout/master/Makefile
wget -O requirements.txt https://raw.githubusercontent.com/kitconcept/buildout/master/requirements.txt
wget -O plone-4.3.x.cfg https://raw.githubusercontent.com/kitconcept/buildout/master/plone-4.3.x.cfg
wget -O plone-5.1.x.cfg https://raw.githubusercontent.com/kitconcept/buildout/master/plone-5.1.x.cfg
wget -O plone-5.2.x.cfg https://raw.githubusercontent.com/kitconcept/buildout/master/plone-5.2.x.cfg
wget -O versions.cfg https://raw.githubusercontent.com/kitconcept/buildout/master/versions.cfg

.installed.cfg: bin/buildout *.cfg
bin/buildout
Expand All @@ -13,12 +37,32 @@ bin/buildout: bin/pip
bin/pip install -r requirements.txt
@touch -c $@

build-plone-5.2: .installed.cfg
.PHONY: Build Plone 4.3
build-plone-4.3: .installed.cfg ## Build Plone 4.3
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/buildout -c plone-4.3.x.cfg

.PHONY: Build Plone 5.0
build-plone-5.0: .installed.cfg ## Build Plone 5.0
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/buildout -c plone-5.0.x.cfg

.PHONY: Build Plone 5.1
build-plone-5.1: .installed.cfg ## Build Plone 5.1
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/buildout -c plone-5.1.x.cfg

.PHONY: Build Plone 5.2
build-plone-5.2: .installed.cfg ## Build Plone 5.2
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/buildout -c plone-5.2.x.cfg

build-py3:
## Build Plone 5.2 with Python 3
build-py3: ## Build Plone 5.2 with Python 3
virtualenv --python=python3 .
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
Expand All @@ -27,13 +71,24 @@ build-py3:
bin/python bin/pip:
virtualenv --clear --python=python$(version) .

.PHONY: Test
test: ## Test
bin/test

.PHONY: Test Performance
test-performance:
jmeter -n -t performance.jmx -l jmeter.jtl

release:
.PHONY: Code Analysis
code-analysis: ## Code Analysis
bin/code-analysis

.PHONY: Release
release: ## Release
bin/fullrelease

clean:
.PHONY: Clean
clean: ## Clean
git clean -Xdf

.PHONY: all clean

0 comments on commit b96fde8

Please sign in to comment.