github.com/n1ghtfa1l/go-vnt@v0.6.4-alpha.6/.gitlab-ci.yml (about)

     1  #image: golang:1.9.4
     2  
     3  before_script:
     4    # only work in intranet gitlab
     5    - export GOPATH="/home/gitlab-runner/builds/b7ec99ca/0/VNT"
     6    - export GOBIN="$GOPATH/bin"
     7    - export GOROOT="/usr/lib/go-1.10"
     8    - export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/go/bin:/usr/lib/go-1.10/bin/:$GOBIN
     9    - export GO_PROJECT_NAMESPACE="$GOPATH/src/github.com/vntchain"
    10    - export VNTCHAIN_PROJECT_DIR="$GO_PROJECT_NAMESPACE"
    11    - export VNT_PROJECT_DIR="$VNTCHAIN_PROJECT_DIR/go-vnt"
    12    - echo "Go namespace:" $GO_PROJECT_NAMESPACE
    13    - echo "Delete old namespace dir"
    14    - rm -rf $GO_PROJECT_NAMESPACE
    15    - mkdir -p $GO_PROJECT_NAMESPACE
    16    - echo "current dir:" $(pwd)
    17    - ln -sf $(pwd) $VNT_PROJECT_DIR
    18    # check go env
    19    - go env
    20  
    21  
    22  
    23  stages:
    24    - build_test
    25  
    26  build_and_test_job:
    27    stage: build_test
    28    script:
    29      - cd $VNT_PROJECT_DIR
    30      - echo "Build at:" $(pwd)
    31      - make all
    32      - echo "Run all tests"
    33      - go test ./vnt/...
    34      - go test ./event/...
    35      - go test ./params/...
    36      - go test ./internal/...
    37      - go test ./cmd/abigen
    38      - go test ./cmd/bootnode
    39      - go test ./cmd/clef
    40      - go test ./cmd/vntkey
    41      - go test ./cmd/faucet
    42      - go test ./cmd/gvnt
    43      - go test ./cmd/p2psim
    44      - go test ./cmd/puppeth
    45      - go test ./cmd/rlpdump
    46      - go test ./cmd/utils
    47      - go test ./cmd/wnode
    48      - go test ./log/...
    49      - go test ./trie/...
    50      - go test ./producer/...
    51      - go test ./tests/...
    52      - go test ./rlp/...
    53      - go test ./accounts/...
    54      - go test ./rpc/...
    55      - go test ./common/...
    56      - go test ./consensus/...
    57      - go test ./mobile/...
    58      - go test ./crypto/...
    59      - go test ./bmt/...
    60      - go test ./vntstats/...
    61      - go test ./vntclient/...
    62      - go test ./signer/...
    63      - go test ./node/...
    64      - go test ./metrics/...
    65      - go test ./whisper/...
    66      - go test ./les/...
    67      - go test ./vntdb/...
    68      - go test ./core/...
    69      - go test ./light/...
    70      - go test ./console/...
    71