forked from IMIO/cpskin.minisite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (19 loc) · 905 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make
.PHONY: buildout cleanall test instance
bin/pip:
if [ -f /usr/bin/virtualenv-2.7 ] ; then virtualenv-2.7 .;else virtualenv -p python2.7 .;fi
touch $@
bin/buildout: buildout.cfg bin/pip
./bin/pip install -I -r requirements.txt
touch $@
buildout: bin/buildout
./bin/buildout -t 7
test: buildout
./bin/test
instance: buildout
./bin/instance fg
cleanall:
rm -rf bin develop-eggs downloads include lib parts .installed.cfg .mr.developer.cfg bootstrap.py parts/omelette local/ share/ cpskin.minisite.egg-info pip-selfcheck.json
docker-test:
docker pull docker-staging.imio.be/iasmartweb/test:$(shell id -u)
docker run -u $(shell id -u):$(shell id -g) --rm -v "$(shell pwd):/src" -w /src docker-staging.imio.be/iasmartweb/test:$(shell id -u) bash -c 'virtualenv -p python2.7 . && bin/pip install -r requirements.txt && bin/buildout && /etc/init.d/xvfb start && bin/test --all'