From 6999e34820f4f6c5d734c67466a866682e92e062 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Thu, 28 Feb 2019 14:27:32 +0100 Subject: [PATCH 1/3] Add circleci Build on circleci, should be much faster. --- .circleci/config.yml | 97 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..810608fa --- /dev/null +++ b/.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 : From 97b298a04e25fac0c3639fa4aeb1c917157e778b Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Thu, 28 Feb 2019 14:57:18 +0100 Subject: [PATCH 2/3] Only build OS X on travis --- .travis.yml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index e19a1f35..d9629b7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,3 @@ -dist: xenial -language: minimal - matrix: include: - name: "MacOS + Clang" @@ -26,26 +23,6 @@ matrix: - "cd test && python3 -m nose --rednose --verbose" -env: - matrix: - - CC=gcc ARCH=armhf - - CC=clang ARCH=armhf - - CC=gcc ARCH=arm64 - - CC=clang ARCH=arm64 - - CC=gcc ARCH=i386 - - CC=clang ARCH=i386 - - CC=gcc ARCH=amd64 - - CC=clang ARCH=amd64 - - CC=gcc ARCH=unstable-ppc - - CC=clang ARCH=unstable-ppc - -script: - - docker run --rm --privileged multiarch/qemu-user-static:register --reset - - 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" - cache: pip # vim: set ft=yaml ts=2 sw=2 tw=0 et : From 760de42e13452406704e4634446f8c8ae3713cb3 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Thu, 28 Feb 2019 16:05:45 +0100 Subject: [PATCH 3/3] Add status badges --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f3b0216..c15dd272 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # PQClean -[![Build Status](https://travis-ci.com/PQClean/PQClean.svg?branch=master)](https://travis-ci.com/PQClean/PQClean) -[![Build status](https://ci.appveyor.com/api/projects/status/186ky7yb9mlqj3io/branch/master?svg=true)](https://ci.appveyor.com/project/PQClean/pqclean/branch/master) +[![Build Status on Travis CI](https://travis-ci.com/PQClean/PQClean.svg?branch=master)](https://travis-ci.com/PQClean/PQClean) +[![Build Status on Appveyor](https://ci.appveyor.com/api/projects/status/186ky7yb9mlqj3io/branch/master?svg=true)](https://ci.appveyor.com/project/PQClean/pqclean/branch/master) +[![Build Status on CircleCI](https://circleci.com/gh/PQClean/PQClean/tree/master.svg?style=svg)](https://circleci.com/gh/PQClean/PQClean/tree/master) **PQClean**, in short, is an effort to collect **clean** implementations of the post-quantum schemes that are in the