forked from softdevteam/bdwgc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.buildbot.sh
30 lines (24 loc) · 845 Bytes
/
.buildbot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# Build script for continuous integration.
set -e
mkdir out && cd out
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -Denable_parallel_mark=ON -Dbuild_tests=ON -Denable_gc_assertions=ON ../
make -j
ctest
# Build alloy and test it against our BDWGC fork
cd ../
export CARGO_HOME="`pwd`/.cargo"
export RUSTUP_HOME="`pwd`/.rustup"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
sh rustup.sh --default-host x86_64-unknown-linux-gnu \
--default-toolchain nightly \
--no-modify-path \
--profile minimal \
-y
export PATH=`pwd`/.cargo/bin/:$PATH
BDWGC_SRC=`pwd`
git clone https://github.com/softdevteam/alloy
cd alloy
BDWGC=${BDWGC_SRC} ENABLE_GC_ASSERTIONS=true /usr/bin/time -v python3 x.py test --stage 2 \
--config .buildbot.config.toml --exclude rustdoc-json --exclude debuginfo