forked from tarantool/cartridge-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (48 loc) · 1.62 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
bootstrap: .rocks
.rocks:
tarantoolctl rocks install luatest 0.5.0
tarantoolctl rocks install luacov 0.13.0
tarantoolctl rocks install luacheck 0.25.0
tmp/sdk-1.10:
echo "Using tarantool-enterprise-bundle ${BUNDLE_VERSION}"
curl -O -L https://tarantool:${DOWNLOAD_TOKEN}@download.tarantool.io/enterprise/tarantool-enterprise-bundle-${BUNDLE_VERSION}.tar.gz
tar -xzf tarantool-enterprise-bundle-${BUNDLE_VERSION}.tar.gz -C ./tmp
mv tmp/tarantool-enterprise tmp/sdk-1.10
rm -f tarantool-enterprise-bundle-${BUNDLE_VERSION}.tar.gz
tmp/cache-image.tar:
docker build \
--tag cache-image \
--target ${CACHE_IMAGE_TARGET} \
- < Dockerfile.cache
docker save -o tmp/cache-image.tar cache-image
.PHONY: lint
lint: bootstrap
.rocks/bin/luacheck ./
flake8
.PHONY: test
test: luatest pytest test-getting-started
.PHONY: luatest
luatest: bootstrap
rm -f tmp/luacov.*
.rocks/bin/luatest --coverage && .rocks/bin/luacov .
grep -A999 '^Summary' tmp/luacov.report.out
python_deps:
pip3.6 install -r test/python/requirements.txt
.PHONY: pytest
pytest: bootstrap
python3.6 -m pytest -vvl --durations=10
.PHONY: test-getting-started
test-getting-started: bootstrap
cd test/examples/getting-started-app; \
sh test_start.sh ../../../examples/getting-started-app;
cd ./examples/getting-started-app; \
.rocks/bin/luatest -v
.rocks/bin/luacheck ./examples/getting-started-app \
--exclude-files **/.rocks/*
.PHONY: ci_prepare
ci_prepare: python_deps
git config --global user.email "test@tarantool.io"
git config --global user.name "Test Tarantool"
.PHONY: clean
clean:
rm -rf .rocks build build.luarocks .cache CMakeCache.txt CMakeFiles