Set PQCLEAN_ONLY_DIFF on CI builds

This commit is contained in:
Thom Wiggers 2019-04-16 14:17:18 +02:00
parent 323b49ca6b
commit 33605f05d8
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363
4 changed files with 8 additions and 2 deletions

View File

@ -15,7 +15,7 @@ version: 2
- run: - run:
name: Run the tests in a container name: Run the tests in a container
command: | command: |
docker run -e CI=true --rm -v `pwd`:`pwd` -w `pwd` "pqclean/ci-container:$ARCH" /bin/bash -c " 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 && uname -a &&
export CC=${CC} && export CC=${CC} &&
pip3 install -r requirements.txt && pip3 install -r requirements.txt &&
@ -35,6 +35,7 @@ version: 2
name: Run tests name: Run tests
command: | command: |
export CC=${CC} export CC=${CC}
export PQCLEAN_ONLY_DIFF=1
pip3 install -r requirements.txt && pip3 install -r requirements.txt &&
cd test && python3 -m nose --rednose --verbose cd test && python3 -m nose --rednose --verbose

View File

@ -8,6 +8,8 @@ matrix:
- pip3 install -r requirements.txt - pip3 install -r requirements.txt
script: script:
- "cd test && python3 -m nose --rednose --verbose" - "cd test && python3 -m nose --rednose --verbose"
env:
PQCLEAN_ONLY_DIFF: 1
addons: addons:
homebrew: homebrew:
packages: packages:
@ -21,6 +23,8 @@ matrix:
packages: packages:
- astyle - astyle
- gcc@8 - gcc@8
env:
PQCLEAN_ONLY_DIFF: 1
before_install: before_install:
- pip3 install -r requirements.txt - pip3 install -r requirements.txt
- brew link gcc - brew link gcc

View File

@ -6,6 +6,7 @@ build:
verbosity: minimal verbosity: minimal
environment: environment:
PQCLEAN_ONLY_DIFF: 1
matrix: matrix:
- BITS: 64 - BITS: 64
- BITS: 32 - BITS: 32

View File

@ -142,7 +142,7 @@ def permit_test(testname, thing, **args):
return False return False
if 'PQCLEAN_ONLY_DIFF' in os.environ: if 'PQCLEAN_ONLY_DIFF' in os.environ:
if shutil.which('git') != None: if shutil.which('git') is not None:
# if we're on a non-master branch, and the only changes are in schemes, # if we're on a non-master branch, and the only changes are in schemes,
# only run tests on those schemes # only run tests on those schemes
branch_result = subprocess.run( branch_result = subprocess.run(