.gitlab-ci.yml 672 Bytes
Newer Older
1 2 3
stages:
- build

Drew's avatar
Drew committed
4
before_script: 
Drew's avatar
Drew committed
5
    - git submodule update --init --recursive
Drew's avatar
Drew committed
6 7 8
linux:
    stage: build
    script:
Drew's avatar
Drew committed
9
        - docker build -t atbuild .
Drew's avatar
Drew committed
10
        - id=$(docker create atbuild)
Drew's avatar
Drew committed
11
        - mkdir bin
Drew's avatar
Drew committed
12
        - docker cp $id:atbuild/bin/atbuild bin/atbuild
Drew's avatar
Drew committed
13 14
        - docker rm -v $id
        - docker rmi atbuild
Drew's avatar
Drew committed
15 16 17 18
    tags:
        - docker
    artifacts:
        paths:
Drew's avatar
Drew committed
19
            - bin
Drew's avatar
Drew committed
20

21 22 23 24
osx:
    stage: build
    script: 
        - export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"
25
        - ./bootstrap/build.sh
26
        - bin/atbuild check
27 28 29 30
    tags:
        - openswift
    artifacts:
        paths:
31
            - bin/atbuild