main
1#!/bin/sh
2
3# bin/cibuild: Setup environment for CI to run tests. This is primarily
4# designed to run on the continuous integration server.
5
6set -e
7
8cd "$(dirname "$0")/.."
9
10# GC customizations
11export RUBY_GC_MALLOC_LIMIT=79000000
12export RUBY_GC_HEAP_INIT_SLOTS=800000
13export RUBY_HEAP_FREE_MIN=100000
14export RUBY_HEAP_SLOTS_INCREMENT=400000
15export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
16
17# setup environment
18RAILS_ROOT="$(cd "$(dirname "$0")"/.. && pwd)"
19export RAILS_ROOT
20export RAILS_ENV="test"
21export RACK_ROOT="$RAILS_ROOT"
22export RACK_ENV="$RAILS_ENV"
23export HEADLESS=1
24
25test -d "/usr/share/rbenv/shims" && {
26 export PATH=/usr/share/rbenv/shims:$PATH
27}
28export PATH="$RACK_ROOT/bin:$PATH"
29
30echo "Running tests …" "$(date "+%H:%M:%S")"
31bin/test
32
33echo "Running linters …"
34date "+%H:%M:%S"
35bin/lint