mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-04 00:02:01 -04:00
* Add SPDX-License-Identifier in src/common * Add SPDX-License-Identifier in FrodoKEM * Add SPDX-License-Identifier in SIKE * Add SPDX-License-Identifier in BIKE * Add SPDX-License-Identifier in OQS headers * Add SPDX-License-Identifier in files generated during copy-from-pqclean * Add SPDX-License-Identifier in Picnic * Add SPDX-License-Identifier in qTesla * Add SPDX-License-Identifier in CMake files * Update license info in README * Add SPDX-License-Identifier in scripts * Add SPDX-License-Info to CMakeLists * Add SPDX-License-Info in tests * Add SPDX-License-Info to various files * Prettyprint * Add test for SPDX-License-Identifier headers * Updated license identifiers for CPU extension detection code. * Use conjunction for SPDX in file with two licenses Co-authored-by: xvzcf <xvzcf@users.noreply.github.com>
21 lines
522 B
Bash
Executable File
21 lines
522 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Detects whether there has been a Git commit in the last day on this
|
|
# branch. Returns 1 if there has been a commit, 0 if there has not.
|
|
# Always returns 1 if running in circleci local
|
|
|
|
if [ "x${CIRCLECI}" == "xtrue" ] && [ "x${CIRCLE_BUILD_NUM}" == "x" ]; then
|
|
echo "Running in circleci local"
|
|
exit 1
|
|
fi
|
|
|
|
r=`git log --name-only --since="1 day ago" -n 2`
|
|
if [ "x$r" == "x" ]; then
|
|
echo "No commit in the last day. No build/test required. Exiting."
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|