-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathlets.yaml
119 lines (98 loc) · 3.32 KB
/
lets.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
shell: bash
env:
CURRENT_UID:
sh: echo "`id -u`:`id -g`"
commands:
release:
description: |
Update version in hiku/__init__.py
Create new annotated tag
Push changes to remote
options: |
Usage: lets release <version> --message=<message>
Options:
<version> Set version
--message=<message>, -m Release message
Example:
lets release 0.7.1 --message="Added federation"
lets release 0.7.2rc1 --message="Added feature"
cmd: ./scripts/release.sh ${LETSOPT_VERSION} "${LETSOPT_MESSAGE}"
_build-base:
description: Build base docker image
cmd: docker build -t hiku-base -f Dockerfile --target base .
_build-examples:
description: Build docker image for examples
depends: [_build-base]
cmd: docker build -t hiku-examples -f Dockerfile --target examples .
_build-docs:
description: Build docker image for docs
depends: [_build-base]
cmd: docker build -t hiku-docs -f Dockerfile --target docs .
_build-tests:
description: Build docker image for test
depends: [_build-base]
cmd: docker build -t hiku-tests -f Dockerfile --target tests .
_build-dev:
description: Build docker image for dev
depends: [_build-base]
cmd: docker build -t hiku-dev -f Dockerfile --target dev .
docs:
description: Build docs
depends: [_build-docs]
cmd: docker compose run --rm docs
test:
description: Run tests
depends: [_build-tests]
cmd: [docker compose, run, --rm, test]
test-pg:
description: Run tests with pg
depends: [_build-tests]
cmd: [docker compose, run, --rm, test-pg]
test-tox:
description: Run tests using tox
depends: [_build-tests]
cmd: docker compose run --rm test tox
bench:
description: Run benchmarks
depends: [_build-tests]
cmd: docker compose run --rm test-base tests/benchmarks --benchmark-enable $@
flake:
description: Run flake8
depends: [_build-dev]
cmd: docker compose run --rm dev pdm run flake
black:
description: Run flake8
depends: [_build-dev]
cmd: docker compose run --rm dev pdm run black
mypy:
description: Run mypy
depends: [_build-dev]
cmd: docker compose run --rm dev pdm run mypy $LETS_COMMAND_ARGS
examples-federation:
description: Run federation app from examples
depends: [_build-examples]
cmd: docker compose up examples-federation
examples-federation-v2:
description: Run federation 2 app from examples
depends: [_build-examples]
cmd: docker compose up examples-federation-v2
examples-flask:
description: Run flask app from examples
depends: [_build-examples]
cmd: docker compose up examples-flask
examples-aiohttp:
description: Run aiohttp app from examples
depends: [_build-examples]
cmd: docker compose up examples-aiohttp
federation-compatibility-test:
description: Run federation compatibility test
depends: [_build-examples]
cmd: |
echo "Dumping schema..."
docker compose run --rm federation-compatibility-server dump
export APOLLO_ELV2_LICENSE=accept
npx @apollo/federation-subgraph-compatibility docker \
--compose ./examples/federation-compatibility/docker-compose.yml \
--path /graphql \
--schema ./examples/federation-compatibility/products.graphql \
--debug