forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.freebsdci.sh
executable file
·65 lines (53 loc) · 1.18 KB
/
.freebsdci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
# FreeBSD CI Build Scripts
# The flow of a FreeBSD CI (https://freebsdci.julialang.org) build:
#
# 1. `cleanup`
# 2. `compile`
# 3. `build-state`
# 4. `runtests`
# 5. `test-embedding`
#
# Detail of flow is controlled by the variable `factory`
# here.
# https://github.com/iblis17/julia-fbsd-buildbot/blob/master/master/master.cfg
#
# Usage: .freebsdci.sh <stage>
set -xe
build-state(){
gmake build-stats
}
cleanup(){
git clean -fdx
}
compile(){
export MALLOC_CONF='junk:false'
export VERBOSE=1
export FORCE_ASSERTIONS=1
export LLVM_ASSERTIONS=1
export USECCACHE=1
gmake check-whitespace
gmake release -j $MAKE_JOBS_NUMBER
}
runtests(){
export MALLOC_CONF='junk:false'
export VERBOSE=1
export FORCE_ASSERTIONS=1
export LLVM_ASSERTIONS=1
export JULIA_TEST_MAXRSS_MB=600
export JULIA_CPU_THREADS=$MAKE_JOBS_NUMBER
./usr/bin/julia --check-bounds=yes test/runtests.jl all
./usr/bin/julia --check-bounds=yes test/runtests.jl \
LibGit2/online Pkg/pkg download
}
test-embedding(){
export JULIA='../../julia'
export BIN='../../tmp'
mkdir -vp tmp
gmake -C test embedding
}
if [ -z $1 ]
then
exit 1
fi
$1