aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: fc6cd6486ba646671bc12bdeeae8016ff20791af (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
image: "registry.gitlab.com/byzantine-lab/go-tangerine/ci-testbed:latest"

before_script:
  - mkdir -p /go/src/github.com/tangerine-network
  - ln -s /builds/byzantine-lab/go-tangerine /go/src/github.com/tangerine-network
  - cd /go/src/github.com/tangerine-network/go-tangerine

stages:
  - lint
  - test
  - docker

lint:
  stage: lint
  tags:
    - golang
  script:
    - go run build/ci.go lint

test:
  stage: test
  tags:
    - golang
  script:
    - make libbls
    - go run build/ci.go install
    - go run build/ci.go test -coverage

smoke:
  stage: test
  tags:
    - golang
  script:
    - ./build/setup_recovery_env.sh
    - make gtan
    - ./test/run_test.sh --smoke-test
    - ./build/fullnode-test.sh
    - pkill -15 -f gtan
    - ./test/run_test.sh --continue --smoke-test
    - ./build/recovery-test.sh


docker:
  only:
    - master
  stage: docker
  image: docker:stable
  services:
    - docker:dind
  variables:
    IMAGE: byzantinelab/go-tangerine
  tags:
    - golang
  script:
    - docker login -u $CI_REGISTRY_USER -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
    - docker build -t $IMAGE:latest .
    - docker push $IMAGE:latest