-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtest.sh
executable file
·31 lines (22 loc) · 943 Bytes
/
test.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
#!/bin/bash -l
set -e
export PATH=./bin:$PATH
export RAILS_ENV=test
export BUNDLE_WITHOUT=development
CORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
BUNDLE_JOBS=$((CORES-1))
CI_PIPELINE_COUNTER=${GO_PIPELINE_COUNTER-0}
CI_EXECUTOR_NUMBER=${EXECUTOR_NUMBER-0}
# remove prior dirty packaged gems e.g. build.sh
rm -rf vendor/cache .bundle/config
# due to glibc being lesser than the required for nokogiri pre-build extensions
bundle config build.nokogiri --use-system-libraries
bundle install --jobs $BUNDLE_JOBS
rm -rf vendor/assets/bower_components
bowndler update --production --config.interactive=false
npm install -q
for i in 1 2 3 4 5; do
./node_modules/karma/bin/karma start spec/javascripts/karma.conf.js && break
done
bundle exec rspec spec --format html --out tmp/spec.html --format RspecJunitFormatter --profile --format progress --deprecation-out log/rspec_deprecations.txt
bundle exec cucumber