Tomáš Mládek
4c1034ee4b
Squashed commit of the following: commit 9f767769ffd1887964e3294d47a043672208810d Author: Tomáš Mládek <tmladek@protonmail.ch> Date: Sat Feb 20 11:51:20 2021 +0100 update Makefile dependencies commit 535689b90ea2061854082dda0381f03358f66fc9 Author: Tomáš Mládek <tmladek@protonmail.ch> Date: Sat Feb 20 11:02:24 2021 +0100 build stage produces artifacts commit 6841e1983141d99b30854430d6a9a6f9353ab9ac Author: Tomáš Mládek <t@mldk.cz> Date: Sat Feb 20 10:58:10 2021 +0100 install clippy, disable frontend lint for now commit 778dec8436da536a2c76d9e34624bbbc47eee710 Author: Tomáš Mládek <tmladek@protonmail.ch> Date: Sat Feb 20 10:27:44 2021 +0100 fix makefile (?) commit b43ab42098bac0af4499a2b0e830c32cdcdcae52 Author: Tomáš Mládek <tmladek@protonmail.ch> Date: Sat Feb 20 10:25:38 2021 +0100 CI test, build whole package
63 lines
No EOL
947 B
YAML
63 lines
No EOL
947 B
YAML
variables:
|
|
RUST_IMAGE: "rust:latest"
|
|
NODE_IMAGE: "node:lts"
|
|
|
|
stages:
|
|
- lint
|
|
- build
|
|
- test
|
|
- release
|
|
|
|
lint:backend:
|
|
stage: lint
|
|
image: $RUST_IMAGE
|
|
script:
|
|
- rustup component add clippy
|
|
- make backend_lint
|
|
rules:
|
|
- allow_failure: true
|
|
|
|
#lint:frontend:
|
|
# stage: lint
|
|
# image: $NODE_IMAGE
|
|
# script:
|
|
# - make frontend_lint
|
|
# rules:
|
|
# - allow_failure: true
|
|
|
|
build:backend:
|
|
stage: build
|
|
image: $RUST_IMAGE
|
|
script:
|
|
- rustc --version && cargo --version
|
|
- make backend
|
|
artifacts:
|
|
paths:
|
|
- target
|
|
expire_in: 1 day
|
|
|
|
build:frontend:
|
|
stage: build
|
|
image: $NODE_IMAGE
|
|
script:
|
|
- node --version && npm --version
|
|
- make frontend
|
|
artifacts:
|
|
paths:
|
|
- ui/dist
|
|
expire_in: 1 day
|
|
|
|
test:backend:
|
|
stage: test
|
|
image: $RUST_IMAGE
|
|
script:
|
|
- make backend_test
|
|
|
|
package:
|
|
stage: release
|
|
image: $RUST_IMAGE
|
|
script:
|
|
- make
|
|
artifacts:
|
|
paths:
|
|
- dist |