]> ruderich.org/simon Gitweb - safcm/safcm.git/blob - .gitlab-ci.yml
frontend: add Loop.HostSyncMsg()
[safcm/safcm.git] / .gitlab-ci.yml
1 .template-docker: &template-docker
2   before_script:
3     - apt-get update
4     - apt-get install --no-install-recommends --yes build-essential ca-certificates git golang golang-1.16 golang-golang-x-tools make openssh-server shellcheck
5   script:
6     # Gitlab-runner uses umask 0000 (wtf?!) and mixes nobody and root user
7     # when setting up the environment. This breaks ssh's permission check on
8     # authorized_keys.
9     - chown -R root:root /builds
10     - chmod -R go-w /builds
11     # NOTE: golang is still using golang-1.15
12     - mkdir -p $HOME/go/bin
13     - ln -sf /usr/lib/go-1.16/bin/go $HOME/go/bin
14     - ln -sf /usr/lib/go-1.16/bin/gofmt $HOME/go/bin
15     #
16     - mkdir /run/sshd
17     - ./ci/run
18     # Windows is not really supported, but at least check building works
19     - PATH=$HOME/go/bin:$PATH make GOOS=windows GOFLAGS=
20
21 debian-sid:
22   <<: *template-docker
23   image: debian:sid