1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-26 17:31:38 +00:00
pqcrypto/.travis.yml

105 lines
3.1 KiB
YAML
Raw Normal View History

2019-01-16 12:02:57 +00:00
language: c
dist: xenial
matrix:
include:
- name: "Linux + GCC + Linting"
2019-02-05 10:02:07 +00:00
os: linux
compiler: gcc
env:
- MAKETARGET="test-all tidy-all check-format"
addons:
apt:
packages: &xenial-packages
- astyle
- python3-yaml
- python3-nose
- python3-rednose
- valgrind
2019-02-05 10:02:07 +00:00
- name: "Linux + Clang"
os: linux
compiler: clang
env:
- MAKETARGET=test-all
addons:
apt:
packages: *xenial-packages
2019-02-11 13:59:33 +00:00
- name: "Linux 32-bit GCC"
os: linux
compiler: gcc # Clang has i386-libasan problems on xenial
addons:
apt:
packages: # no way to re-use xenial-packages with lists :(
- astyle
2019-02-11 13:59:33 +00:00
- gcc-multilib
- python3-yaml
- python3-nose
- python3-rednose
2019-02-11 13:59:33 +00:00
- valgrind
before_install:
- sudo dpkg --add-architecture i386
- sudo apt update -qq && sudo apt-get install -qqy libc6-dbg:i386
env:
- MAKETARGET=test-all
- EXTRAFLAGS=-m32
- name: "Run tests on qemu-ppc (GCC)"
os: linux
services: docker
env:
- MAKETARGET="run-functest-all run-sanitizer-all"
script:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker run --rm -v `pwd`:`pwd` -w `pwd` "pqclean/debian-unstable-ppc" /bin/bash -c "uname -a &&
2019-02-18 12:09:38 +00:00
make ${MAKETARGET} &&
cd test && python3 -m nose --rednose --verbose"
2019-02-14 00:45:05 +00:00
- name: "Run tests on qemu-arm32 (GCC)"
os: linux
services: docker
env:
- MAKETARGET="run-functest-all run-sanitizer-all"
2019-02-14 00:45:05 +00:00
script:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker run --rm -v `pwd`:`pwd` -w `pwd` "pqclean/debian-buster-arm" /bin/bash -c "uname -a &&
ASAN_OPTIONS=detect_leaks=0 make ${MAKETARGET} &&
2019-02-18 12:09:38 +00:00
cd test && python3 -m nose --rednose --verbose"
2019-02-14 00:45:05 +00:00
- name: "Run tests on qemu-aarch64 (GCC)"
os: linux
services: docker
env:
- MAKETARGET="run-functest-all run-sanitizer-all"
2019-02-14 00:45:05 +00:00
script:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker run --rm -v `pwd`:`pwd` -w `pwd` "pqclean/debian-buster-aarch64" /bin/bash -c "uname -a &&
ASAN_OPTIONS=detect_leaks=0 make ${MAKETARGET} &&
2019-02-18 12:09:38 +00:00
cd test && python3 -m nose --rednose --verbose"
2019-02-05 10:02:07 +00:00
- name: "MacOS + Clang"
os: osx
osx_image: xcode10.1
compiler: clang
before_install:
- pip3 install -r requirements.txt
env:
- MAKETARGET=test-all
2019-02-05 10:02:07 +00:00
- name: "MacOS + GCC8"
os: osx
osx_image: xcode10.1
compiler: gcc
addons:
homebrew:
packages:
- gcc@8
before_install:
- pip3 install -r requirements.txt
- gcc --version
env:
- MAKETARGET=test-all
2019-01-16 12:02:57 +00:00
script:
- make ${MAKETARGET}
- cd test && python3 -m nose --rednose --verbose
cache: pip
2019-01-16 12:02:57 +00:00
# vim: set ft=yaml ts=2 sw=2 tw=0 et :