summaryrefslogtreecommitdiffstats
path: root/.cirrus.yml
blob: b639575b2c5b6896eb19338de1b794bb9a4e69eb (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
docker_builder:
    name: CI
    env:
        HOME: /root
        DEBIAN_FRONTEND: noninteractive
        CIRRUS_LOG_TIMESTAMP: true
    setup_script: |
        apt-get -q update
        apt-get -q install -y bats cryptsetup golang
        go version
        make
    unit_test_script: |
        go test -timeout 45m -v -cover
        case $(go env GOARCH) in
        amd64)
          otherarch=386;;
        arm64)
          otherarch=arm;;
        mips64)
          otherarch=mips;;
        mips64le)
          otherarch=mipsle;;
        esac
        if test -n "$otherarch" ; then
          echo running unit tests again with GOARCH=$otherarch
          GOARCH=$otherarch go test -timeout 45m -v -cover
        fi
        :
    defaults_script: |
        bats -f defaults ./tests
    aes_script: |
        bats -f aes ./tests