mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-26 17:31:38 +00:00
116 lines
2.5 KiB
YAML
116 lines
2.5 KiB
YAML
version: 2
|
|
|
|
.emulated_job: &defaultjob
|
|
machine: true
|
|
steps:
|
|
- checkout
|
|
- run: &checkouttask
|
|
name: Pull submodules
|
|
command: |
|
|
git submodule init
|
|
git submodule update
|
|
git checkout $CIRCLECI_BRANCH
|
|
git reset --hard $CIRCLECI_SHA1
|
|
- 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 -e CI=true -e PQCLEAN_ONLY_DIFF=1 --rm -v `pwd`:`pwd` -w `pwd` "pqclean/ci-container:$ARCH" /bin/bash -c "
|
|
uname -a &&
|
|
export CC=${CC} &&
|
|
pip3 install -r requirements.txt &&
|
|
mkdir test-results &&
|
|
cd test && python3 -m nose --rednose --verbose --with-xunit --xunit-file=../test-results/nosetests.xml"
|
|
- store_test_results:
|
|
path: test-results
|
|
|
|
.native_job: &nativejob
|
|
docker:
|
|
- image: pqclean/ci-container:$ARCH
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
<<: *checkouttask
|
|
- run:
|
|
name: Run tests
|
|
command: |
|
|
export CC=${CC}
|
|
export PQCLEAN_ONLY_DIFF=1
|
|
pip3 install -r requirements.txt
|
|
mkdir test-results
|
|
cd test
|
|
python3 -m nose --rednose --verbose --with-xunit --xunit-file=../test-results/nosetests.xml
|
|
- store_test_results:
|
|
path: test-results
|
|
|
|
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 :
|