1version: v1.0
2name: Build and Check
3agent:
4  machine:
5    type: e1-standard-2
6    os_image: ubuntu1804
7
8blocks:
9  - name: "Build"
10    task:
11      jobs:
12        - name: Build gcc-8
13          commands:
14            - sem-version c 8
15        - name: Build gcc-7
16          commands:
17            - sem-version c 7
18        - name: Build gcc-6
19          commands:
20            - sem-version c 6
21
22      prologue:
23        commands:
24          - sudo apt update
25          - sudo apt --yes install docbook-xsl liblzma-dev zlib1g-dev cython linux-headers-generic libssl-dev
26          - checkout
27
28      epilogue:
29        commands:
30          - ./autogen.sh c
31          - make
32
33  - name: "Unit tests"
34    task:
35      jobs:
36        - name: check
37          commands:
38            - sem-version c 8
39            - ./autogen.sh c
40            - make check
41
42      prologue:
43        commands:
44          - sudo apt update
45          - sudo apt --yes install docbook-xsl liblzma-dev zlib1g-dev cython linux-headers-generic libssl-dev
46          - checkout
47