~nromdotcom/gemif

ref: 7428380780749a75318cfc276c3197263d72e829 gemif/.build.yml -rw-r--r-- 1.0 KiB
74283807Norm MacLennan Update infrastructure dependencies 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
image: debian/testing
packages:
  - make
  - curl
sources:
  - https://git.sr.ht/~nromdotcom/gemif
environment:
  PATH: /usr/local/bin:/usr/bin:/bin:/home/build/go/bin:/usr/local/go/bin
secrets:
  - 86622fb8-f9da-442b-9208-318553a9a4f7
tasks:
  - setup: |
      curl https://golang.org/dl/go1.16.linux-amd64.tar.gz -o go1.16.linux-amd64.tar.gz -L
      sudo tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
      go get -u golang.org/x/lint/golint
      curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.36.0
      cd gemif
      make init
  - lint: |
      cd gemif
      make nonmegalint
      make megalintci
  - test: |
      cd gemif
      make test
  - build: |
      cd gemif
      make build
  - release: |
      cd gemif
      set +x
      . ~/.srht_token
      set -x
      make release

  # Don't let's automate this deployment
  # yet, cause it might take a few tries.
  # - deploy_infra: |
  #     cd gemif
  #     set +x
  #     . ~/.srht_token
  #     set -x
  #     make release