forked from softdevteam/yksom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.buildbot.sh
40 lines (29 loc) · 1.13 KB
/
.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
31
32
33
34
35
36
37
38
39
40
#! /bin/sh
set -e
git submodule init
git pull --recurse-submodules
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
rustup toolchain install nightly --allow-downgrade --component rustfmt
cargo +nightly fmt --all -- --check
# Build rustgc
git clone https://github.com/softdevteam/rustgc
mkdir -p rustgc/build/rustgc
(cd rustgc && ./x.py build --config ../.buildbot.config.toml)
rustup toolchain link rustgc rustgc/build/x86_64-unknown-linux-gnu/stage1
cargo clean
cargo +rustgc test
cargo +rustgc test --release
cargo +rustgc run -- --cp SOM/Smalltalk SOM/TestSuite/TestHarness.som
cargo +rustgc run --release -- --cp SOM/Smalltalk SOM/TestSuite/TestHarness.som
cd SOM && \
cargo +rustgc run --release -- \
--cp Smalltalk:TestSuite:SomSom/src/compiler:SomSom/src/vm:SomSom/src/vmobjects:SomSom/src/interpreter:SomSom/src/primitives \
SomSom/tests/SomSomTests.som