mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-11-09 21:35:43 +03:00
41c6dbb3af
Problem: There are no tests checking the performance of different ignoring modes. Solution: Add such tests to `Xrefcheck.Test.IgnoringSpec`. Also add markdowns to test on real files.
35 lines
1.6 KiB
YAML
35 lines
1.6 KiB
YAML
# SPDX-FileCopyrightText: 2019 Serokell <https://serokell.io>
|
|
#
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
steps:
|
|
- command: nix-build xrefcheck.nix
|
|
label: Library and tests
|
|
- command: nix-build
|
|
label: Executable
|
|
artifact_paths:
|
|
- "result/bin/xrefcheck"
|
|
- command: nix-build --argstr platform windows
|
|
label: Windows executable
|
|
artifact_paths:
|
|
- "result/bin/*"
|
|
- command: nix run -f. -c xrefcheck --ignored tests/markdowns
|
|
label: Xrefcheck itself
|
|
- command: nix run -f $(nix eval --raw '((import ./nix/sources.nix).nixpkgs)') reuse -c reuse lint
|
|
label: REUSE lint
|
|
- command:
|
|
- NIX_PATH=nixpkgs=$(nix eval --raw '(import ./nix/sources.nix).nixpkgs') nix-shell -p curl git gitAndTools.hub --run "curl https://raw.githubusercontent.com/serokell/scratch/release-binary/scripts/release-binary.sh | bash"
|
|
label: Create a pre-release
|
|
branches: master
|
|
- command:
|
|
- nix-build docker
|
|
- NIX_PATH=nixpkgs=$(nix eval --raw '(import ./nix/sources.nix).nixpkgs') nix run nixpkgs.skopeo -c skopeo --insecure-policy copy --dest-creds "serokell:${DOCKERHUB_PASSWORD}" "docker-archive:$(readlink result)" "docker://docker.io/serokell/xrefcheck:latest"
|
|
label: Push to dockerhub
|
|
branches: master
|
|
- command:
|
|
- nix-build docker
|
|
- NIX_PATH=nixpkgs=$(nix eval --raw '(import ./nix/sources.nix).nixpkgs') nix run nixpkgs.skopeo -c skopeo --insecure-policy copy --dest-creds "serokell:${DOCKERHUB_PASSWORD}" "docker-archive:$(readlink result)" "docker://docker.io/serokell/xrefcheck:${BUILDKITE_BRANCH}"
|
|
label: Push release to dockerhub
|
|
if: |
|
|
build.branch =~ /^v[0-9]+.*/
|