mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-21 04:19:01 -05:00
28 lines
546 B
Bash
Executable File
28 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
# This script runs the test suites for the CI build
|
|
|
|
# Be verbose and fail script on the first error
|
|
set -xe
|
|
|
|
# By default: all test runs
|
|
if [ -z $1 ]; then
|
|
TEST_SUITE="all"
|
|
else
|
|
TEST_SUITE="$1"
|
|
fi
|
|
|
|
case $TEST_SUITE in
|
|
linters)
|
|
bundle exec rubocop -Dc .rubocop.yml
|
|
bundle exec haml-lint app/views
|
|
;;
|
|
rspec)
|
|
bundle exec rspec --color --format documentation
|
|
;;
|
|
*)
|
|
bundle exec rubocop -Dc .rubocop.yml
|
|
bundle exec haml-lint app/views
|
|
bundle exec rspec --color --format documentation
|
|
;;
|
|
esac
|