summaryrefslogtreecommitdiff
path: root/bin/cibuild
blob: 499fce955af4021629fce4f43d6fa0a2187ae139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# script/cibuild: Setup environment for CI to run tests. This is primarily
#                 designed to run on the continuous integration server.

set -e

cd "$(dirname "$0")/.."

echo [$(date "+%H:%M:%S")] "==> Started at…"

# GC customizations
export RUBY_GC_MALLOC_LIMIT=79000000
export RUBY_GC_HEAP_INIT_SLOTS=800000
export RUBY_HEAP_FREE_MIN=100000
export RUBY_HEAP_SLOTS_INCREMENT=400000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export CIBUILD=1

ruby -v
gem install bundler --no-ri --no-rdoc --conservative
bin/test
bin/lint