summaryrefslogtreecommitdiff
path: root/.semaphore/semaphore.yml
blob: 62f52b51fa7acbe12c0008820f27437e0104d11e (plain)
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
version: v1.0
name: Build and Check
agent:
  machine:
    type: e1-standard-2
    os_image: ubuntu1804

blocks:
  - name: "Build"
    task:
      jobs:
        - name: Build gcc-8
          commands:
            - sem-version c 8
        - name: Build gcc-7
          commands:
            - sem-version c 7
        - name: Build gcc-6
          commands:
            - sem-version c 6

      prologue:
        commands:
          - sudo apt --yes install docbook-xsl liblzma-dev zlib1g-dev cython linux-headers-generic
          - checkout

      epilogue:
        commands:
          - ./autogen.sh c
          - make

  - name: "Unit tests"
    task:
      jobs:
        - name: check
          commands:
            - sem-version c 8
            - ./autogen.sh c
            - make check

      prologue:
        commands:
          - sudo apt --yes install docbook-xsl liblzma-dev zlib1g-dev cython linux-headers-generic
          - checkout