.gitlab-ci.yml 1.26 KB
Newer Older
1 2 3
stages:
- build

Drew's avatar
Drew committed
4 5 6
linux:
    stage: build
    script:
Drew's avatar
Drew committed
7
        - apt-get update
8
        - apt-get install --no-install-recommends xz-utils curl git ca-certificates -y
Drew's avatar
Drew committed
9
        - curl -L https://github.com/AnarchyTools/atbuild/releases/download/0.9.0/atbuild-0.9.0-linux.tar.xz | tar xJ -C /usr/local
10
        - git submodule update --init --recursive
Drew's avatar
Drew committed
11 12 13 14
        - bootstrap/build.sh linux
        - tests/test.sh
        - mkdir atbuild-${CI_BUILD_REF_NAME}
        - cp bin/atbuild atbuild-${CI_BUILD_REF_NAME}
15
        - tar cJf atbuild-${CI_BUILD_REF_NAME}-linux.tar.xz atbuild-${CI_BUILD_REF_NAME}
Drew's avatar
Drew committed
16
    tags:
Drew's avatar
Drew committed
17
        - autoscale-linux
Drew's avatar
Drew committed
18 19
    artifacts:
        paths:
Drew's avatar
Drew committed
20
            - atbuild-${CI_BUILD_REF_NAME}-linux.tar.xz
21
    image: drewcrawford/swift:latest
Drew's avatar
Drew committed
22

23 24 25
osx:
    stage: build
    script: 
26
        - git submodule update --init --recursive
27
        - export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"
28
        - ./bootstrap/build.sh
29
        - bin/atbuild check
Drew's avatar
Drew committed
30 31
        - mkdir atbuild-${CI_BUILD_REF_NAME}
        - cp bin/atbuild atbuild-${CI_BUILD_REF_NAME}
32
        - tar cJf atbuild-${CI_BUILD_REF_NAME}-osx.tar.xz atbuild-${CI_BUILD_REF_NAME}
33 34 35 36
    tags:
        - openswift
    artifacts:
        paths:
Drew's avatar
Drew committed
37
            - atbuild-${CI_BUILD_REF_NAME}-osx.tar.xz