2018-08-10 19:09:21 +02:00
|
|
|
#!/bin/bash
|
2019-07-30 14:51:05 +02:00
|
|
|
set -e
|
|
|
|
|
2020-08-19 14:07:43 +02:00
|
|
|
# Build cg_clif
|
2020-09-29 14:43:34 +02:00
|
|
|
export RUSTFLAGS="-Zrun_dsymutil=no"
|
2019-07-30 13:37:47 +02:00
|
|
|
if [[ "$1" == "--release" ]]; then
|
|
|
|
export CHANNEL='release'
|
2020-09-29 14:43:34 +02:00
|
|
|
cargo build --release
|
2019-07-30 13:37:47 +02:00
|
|
|
else
|
|
|
|
export CHANNEL='debug'
|
2020-09-29 14:43:34 +02:00
|
|
|
cargo build --bin cg_clif
|
2019-07-30 13:37:47 +02:00
|
|
|
fi
|
|
|
|
|
2020-08-19 14:07:43 +02:00
|
|
|
# Config
|
2020-09-16 16:46:02 +02:00
|
|
|
source scripts/config.sh
|
2020-11-01 19:39:44 +01:00
|
|
|
source scripts/tests.sh
|
2020-08-19 14:07:43 +02:00
|
|
|
export CG_CLIF_INCR_CACHE_DISABLED=1
|
2018-08-08 19:46:16 +02:00
|
|
|
|
2020-08-19 14:07:43 +02:00
|
|
|
# Cleanup
|
2018-08-31 19:50:26 +02:00
|
|
|
rm -r target/out || true
|
2018-08-14 22:01:18 +02:00
|
|
|
|
2020-11-01 19:39:44 +01:00
|
|
|
no_sysroot_tests
|
2019-03-02 21:09:28 +01:00
|
|
|
|
2018-12-14 13:58:33 +01:00
|
|
|
echo "[BUILD] sysroot"
|
2020-11-01 19:47:14 +01:00
|
|
|
time ./build_sysroot/build_sysroot.sh
|
2018-10-08 19:40:06 +02:00
|
|
|
|
2020-11-01 19:39:44 +01:00
|
|
|
base_sysroot_tests
|
2019-07-30 13:37:47 +02:00
|
|
|
|
2020-11-01 19:39:44 +01:00
|
|
|
extended_sysroot_tests
|