瀏覽代碼

Add circleci

Build on circleci, should be much faster.
master
Thom Wiggers 5 年之前
父節點
當前提交
6999e34820
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 1BB0A7CE26E363
共有 1 個檔案被更改,包括 97 行新增0 行删除
  1. +97
    -0
      .circleci/config.yml

+ 97
- 0
.circleci/config.yml 查看文件

@@ -0,0 +1,97 @@
version: 2

.emulated_job: &defaultjob
machine: true
steps:
- checkout
- run:
name: Install the emulation handlers
command: docker run --rm --privileged multiarch/qemu-user-static:register --reset
- run:
name: Run the tests in a container
command: |
docker run --rm -v `pwd`:`pwd` -w `pwd` "pqclean/ci-container:$ARCH" /bin/bash -c "
uname -a &&
export CC=${CC} &&
cd test && python3 -m nose --rednose --verbose"

.native_job: &nativejob
docker:
- image: pqclean/ci-container:$ARCH
steps:
- checkout
- run:
name: Run tests
command: |
export CC=${CC}
cd test && python3 -m nose --rednose --verbose


jobs:
arm64-gcc:
<<: *defaultjob
environment:
CC: gcc
ARCH: arm64
arm64-clang:
<<: *defaultjob
environment:
CC: clang
ARCH: arm64
arm32-gcc:
<<: *defaultjob
environment:
CC: gcc
ARCH: armhf
arm32-clang:
<<: *defaultjob
environment:
CC: clang
ARCH: armhf
ppc-clang:
<<: *defaultjob
environment:
CC: clang
ARCH: unstable-ppc
ppc-gcc:
<<: *defaultjob
environment:
CC: gcc
ARCH: unstable-ppc
amd64-gcc:
<<: *nativejob
environment:
CC: gcc
ARCH: amd64
amd64-clang:
<<: *nativejob
environment:
CC: gcc
ARCH: amd64
i386-gcc:
<<: *nativejob
environment:
CC: gcc
ARCH: i386
i386-clang:
<<: *nativejob
environment:
CC: gcc
ARCH: i386

workflows:
version: 2
build:
jobs:
- arm64-gcc
- arm64-clang
- arm32-gcc
- arm32-clang
- ppc-gcc
- ppc-clang
- amd64-gcc
- amd64-clang
- i386-gcc
- i386-clang

# vim: set ft=yaml ts=2 sw=2 tw=0 et :

Loading…
取消
儲存