repomgr/.gitlab-ci.yml

17 lines
780 B
YAML
Raw Permalink Normal View History

2019-07-05 00:55:11 +02:00
# http://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-gitlab-container-registry
# The docker tag is the first 6 letters of the Git commit id
job_build_dotnet:
stage: build
2019-07-05 23:12:11 +02:00
image: archlinux/base:latest
2019-07-05 00:55:11 +02:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
2019-07-05 23:12:11 +02:00
- pacman -Syu --needed dotnet-sdk sudo base-devel --noconfirm
- 'useradd xunit && echo "xunit ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && mkdir /home/xunit && chown -R xunit:xunit /home/xunit'
- sudo -u xunit dotnet test tests/
2019-07-05 00:55:11 +02:00
- dotnet tool install --global dotnet-warp --version 1.0.9
2019-07-05 23:12:11 +02:00
- PATH="$PATH:/root/.dotnet/tools" dotnet warp -r linux-x64 --verbose repomgr.csproj
2019-07-05 00:55:11 +02:00
artifacts:
paths:
- repomgr