Skip to content

Commit

Permalink
Add color in the CI
Browse files Browse the repository at this point in the history
We export a global "COQEXTRAFLAGS" in ci-wrapper.sh containing
'color yes'.
  • Loading branch information
Villetaneuse committed Nov 19, 2023
1 parent 257b88d commit dd4e976
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dev/ci/ci-bedrock2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ git_download fiat_crypto

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/fiat_crypto/rupicola/bedrock2"
COQMF_ARGS='-arg "-async-proofs-tac-j 1"' make
make install
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-category_theory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download category_theory

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/category_theory"
make
make install
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-color.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download color

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/color"
make
)
2 changes: 1 addition & 1 deletion dev/ci/ci-coq_library_undecidability.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download coq_library_undecidability

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/coq_library_undecidability"
make
make install
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-corn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download corn

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/corn"
./configure.sh
make
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-engine_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download engine_bench

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler ondemand'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/engine_bench"
make coq
make coq-perf-Sanity
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-equations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download equations

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/equations"
[ -e Makefile.coq ] || ./configure.sh coq
make
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-equations_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci_dir="$(dirname "$0")"

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/equations"
make test-suite examples
)
2 changes: 1 addition & 1 deletion dev/ci/ci-fiat_crypto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stacksize=32768
# version of other developments
make_args=(EXTERNAL_REWRITER=1 EXTERNAL_COQPRIME=1)

export COQEXTRAFLAGS='-native-compiler no' # following bedrock2
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no" # following bedrock2
( cd "${CI_BUILD_DIR}/fiat_crypto"
ulimit -s $stacksize
make "${make_args[@]}" pre-standalone-extracted printlite lite ||
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-fiat_crypto_legacy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ targets2=(
selected-specific-display
)

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/fiat_crypto_legacy"
make "${targets1[@]}"
make -j 1 "${targets2[@]}"
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-jasmin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download jasmin

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"

( cd "${CI_BUILD_DIR}/jasmin"
make -C proofs
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-lean_importer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download lean_importer

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"

( cd "${CI_BUILD_DIR}/lean_importer"
make
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-ltac2_compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download ltac2_compiler

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"

( cd "${CI_BUILD_DIR}/ltac2_compiler"
make .merlin
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-metacoq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download metacoq

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/metacoq"
[ -e pcuic/metacoq-config ] || ./configure.sh local
make all TIMED=pretty-timed
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-unimath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_download unimath

if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/unimath"
# these files consumes too much memory for the shared workers
# (at least with -j 2 when the scheduler runs them in parallel)
Expand Down
2 changes: 1 addition & 1 deletion dev/ci/ci-vst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi
# export COMPCERT=bundled

# See ci-compcert.sh
export COQEXTRAFLAGS='-native-compiler no'
COQEXTRAFLAGS="$COQEXTRAFLAGS -native-compiler no"
( cd "${CI_BUILD_DIR}/vst"
make IGNORECOQVERSION=true IGNORECOMPCERTVERSION=true
)
1 change: 1 addition & 0 deletions dev/ci/ci-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${DIR}/../.." || exit 1

export TIMED=1
export COQEXTRAFLAGS='-color yes'
bash "${DIR}/${CI_SCRIPT}" 2>&1 | tee time-of-build.log
code=$?
echo 'Aggregating timing log...'
Expand Down

0 comments on commit dd4e976

Please sign in to comment.