~jacekn/wordpress/wp-plugin-swift-storage-v2

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/guzzle/Makefile

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
all: clean coverage docs
 
2
 
 
3
start-server:
 
4
        @ps aux | grep 'node tests/server.js' | grep -v grep > /dev/null \
 
5
        || node tests/server.js &> /dev/null &
 
6
 
 
7
stop-server:
 
8
        @PID=$(shell ps axo pid,command | grep 'tests/server.js' | grep -v grep | cut -f 1 -d " ") && \
 
9
        [ -n "$$PID" ] && \
 
10
        kill $$PID || \
 
11
        true
 
12
 
 
13
test: start-server
 
14
        vendor/bin/phpunit
 
15
        $(MAKE) stop-server
 
16
 
 
17
coverage: start-server
 
18
        vendor/bin/phpunit --coverage-html=artifacts/coverage
 
19
        $(MAKE) stop-server
 
20
 
 
21
view-coverage:
 
22
        open artifacts/coverage/index.html
 
23
 
 
24
clean:
 
25
        rm -rf artifacts/*
 
26
 
 
27
docs:
 
28
        cd docs && make html && cd ..
 
29
 
 
30
view-docs:
 
31
        open docs/_build/html/index.html
 
32
 
 
33
tag:
 
34
        $(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1"))
 
35
        @echo Tagging $(TAG)
 
36
        chag update -m '$(TAG) ()'
 
37
        sed -i '' -e "s/VERSION = '.*'/VERSION = '$(TAG)'/" src/ClientInterface.php
 
38
        php -l src/ClientInterface.php
 
39
        git add -A
 
40
        git commit -m '$(TAG) release'
 
41
        chag tag
 
42
 
 
43
perf: start-server
 
44
        php tests/perf.php
 
45
        $(MAKE) stop-server
 
46
 
 
47
package: burgomaster
 
48
        php build/packager.php
 
49
 
 
50
burgomaster:
 
51
        mkdir -p build/artifacts
 
52
        curl -s https://raw.githubusercontent.com/mtdowling/Burgomaster/0.0.1/src/Burgomaster.php > build/artifacts/Burgomaster.php
 
53
 
 
54
.PHONY: doc burgomaster