aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ci.sh
blob: dd45b89e1783c55b15639c2ba98d2a02e0765c6e (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
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail
shopt -s inherit_errexit lastpipe

test_build() {
    docker-compose build --progress plain --pull "$@"
}

test_build_clang() {
    echo ----------------------------------------------------------------------
    echo Building w/ clang
    echo ----------------------------------------------------------------------
    echo
    test_build --build-arg COMPILER=clang
}

test_build_gcc() {
    echo ----------------------------------------------------------------------
    echo Building w/ gcc
    echo ----------------------------------------------------------------------
    echo
    test_build --build-arg COMPILER=gcc
}

main() {
    test_build_gcc
    test_build_clang
}

main