gitlab.com/aquachain/aquachain@v1.17.16-rc3.0.20221018032414-e3ddf1e1c055/.gitlab-ci.yml (about)

     1  image: golang:1.19
     2  
     3  lint:
     4    allow_failure: true
     5    before_script:
     6      - shopt -s dotglob
     7      - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/ | grep -v /build/) # All the .go files, excluding vendor/
     8      - make bin/golangci-lint
     9    script:
    10      #    - CGO_ENABLED=0 bin/golangci-lint --color never run -j 1 --build-tags static,netgo,osusergo --config .golangci.yml --out-format line-number
    11      - make linter
    12  
    13  build:
    14    script:
    15      - make all # build all things
    16      - make # build default bin/aquachain
    17      - git clone https://gitlab.com/aquachain/bootstraps ../bootstraps
    18      - ./bin/aquachain import ../bootstraps/latest.dat
    19  
    20  test:
    21    script:
    22      - echo $(go env GOPATH)
    23      - CGO_ENABLED=0 go get -v -d -t ./...
    24      - CGO_ENABLED=0 bash testing/test-short-only.bash
    25