repomgr/.gitlab-ci.yml

17 lines
780 B
YAML

# 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
image: archlinux/base:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- 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/
- dotnet tool install --global dotnet-warp --version 1.0.9
- PATH="$PATH:/root/.dotnet/tools" dotnet warp -r linux-x64 --verbose repomgr.csproj
artifacts:
paths:
- repomgr