forked from seanmorris/ksqlc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (30 loc) · 818 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
29
30
31
32
33
34
35
36
37
38
39
40
41
-include .env
.PHONY: test
PHP_VERSION?=7.3
build-test:
PHP_VERSION=${PHP_VERSION} \
docker-compose -f test/docker-compose.yml build
test:
PHP_VERSION=${PHP_VERSION} \
docker-compose -f test/docker-compose.yml run -T \
php /app/vendor/bin/phpunit \
--whitelist=source/ \
--coverage-clover=/app/coverage.xml \
test/
start:
PHP_VERSION=${PHP_VERSION} \
docker-compose -f test/docker-compose.yml up -d
SECONDS?=120
wait:
sleep ${SECONDS}
stop:
PHP_VERSION=${PHP_VERSION} \
docker-compose -f test/docker-compose.yml down
push-images:
PHP_VERSION=${PHP_VERSION} \
docker-compose -f test/docker-compose.yml push
pull-images:
PHP_VERSION=${PHP_VERSION} \
docker-compose -f test/docker-compose.yml pull
push-coverage:
wget -qO- https://codecov.io/bash | CODECOV_TOKEN=${CODECOV_TOKEN} bash