aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 350953193013951338c38358be12503706f899be (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
image: "golang:1.11"

before_script:
  - apt-get update
  - apt-get install -y openssl libgmp3-dev git make bash gcc libc-dev g++
  - mkdir -p $GOPATH/src/gitlab.com/
  - mv /builds/byzantine-lab $GOPATH/src/gitlab.com
  - mkdir -p /builds/byzantine-lab/tangerine-consensus
  - cd $GOPATH/src/gitlab.com/byzantine-lab/tangerine-consensus
  - bin/install_tools.sh
  - dep ensure -v
  - make dep

stages:
  - lint
  - test

lint:
  tags:
    - generic
  stage: lint
  script:
    - make lint
    - make vet

test-integration-without-race:
  tags:
    - generic
  stage: test
  script:
    - ONLY_INTEGRATION_TEST=true NO_TEST_RACE=true make test
  only:
    - master

test-integration-with-race:
  tags:
    - generic
  stage: test
  script:
    - ONLY_INTEGRATION_TEST=true make test
  only:
    - master
  allow_failure: true

test-no-integration:
  tags:
    - generic
  stage: test
  script:
    - NO_INTEGRATION_TEST=true make test
  only:
    - master

test-short-integration-without-race:
  tags:
    - generic
  stage: test
  script:
    - ONLY_INTEGRATION_TEST=true NO_TEST_RACE=true make test-short
  except:
    - master

test-short-integration-with-race:
  tags:
    - generic
  stage: test
  script:
    - ONLY_INTEGRATION_TEST=true make test-short
  except:
    - master
  allow_failure: true

test-short-no-integration:
  tags:
    - generic
  stage: test
  script:
    - NO_INTEGRATION_TEST=true make test-short
  except:
    - master