#!/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}

bundle install --jobs $BUNDLE_JOBS
bower cache clean
rm -r vendor/assets/bower_components
bowndler install --production --config.interactive=false

RAILS_ENV=development rake karma:install karma:run_once
rake spec
bundle exec cucumber

#!/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}

bundle install --jobs $BUNDLE_JOBS
bower cache clean
rm -r vendor/assets/bower_components
bowndler install --production --config.interactive=false

RAILS_ENV=development rake karma:install karma:run_once
rake spec
rake cucumber

Revert "Call cucumber directly to make it return a non-zero exit status."
Revert "Call cucumber directly to make it return a non-zero exit status."

This reverts commit aea8c3c8e9ee88642d2fb85737f70ee99e41d859.
