allegro/.gitlab-ci.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2019-12-18 05:13:02 +00:00
stages:
2022-08-01 15:38:27 +00:00
- build
- test
- release
2019-12-18 05:13:02 +00:00
2022-08-01 15:38:27 +00:00
default:
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
2019-12-18 05:13:02 +00:00
2022-08-01 15:38:27 +00:00
build:
stage: build
script:
- nix profile install 'nixpkgs#fontconfig'
- nix develop --command scripts/setup.sh
- nix develop --command scripts/build.sh
rules:
- if: $CI_COMMIT_BRANCH
artifacts:
expire_in: 1 week
paths:
- "*.pdf"
- "*.epub"
- "*.mobi"
- "*.docx"
- "*.html"
2019-12-18 05:13:02 +00:00
2022-08-01 15:38:27 +00:00
test:
stage: test
script:
- nix develop --command scripts/setup.sh
- nix develop --command scripts/test.sh
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
2019-12-18 05:13:02 +00:00
2022-08-01 15:38:27 +00:00
release:
stage: release
script:
- nix profile install 'nixpkgs#fontconfig'
- nix develop --command scripts/setup.sh
- nix develop --command scripts/release.sh
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2019-12-18 05:13:02 +00:00
artifacts:
paths:
- "*.pdf"
- "*.epub"
- "*.mobi"
- "*.docx"
- "*.html"