-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjenkins-test.sh
executable file
·39 lines (29 loc) · 1.2 KB
/
jenkins-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
32
33
34
35
36
37
38
39
#!/bin/bash
# ------------------------------------------------------------------------------
# Environment variables
# ------------------------------------------------------------------------------
RBENV_PATH="$HOME/.rbenv"
if [ ! -d $RBENV_PATH ]; then
echo "rbenv path not found: $RBENV_PATH"
exit 1
fi
# Add to PATH environment variable so rbenv command-line utility is available.
export PATH="$RBENV_PATH/bin:$PATH"
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------
# Enable rbenv shims and autocompletion.
eval "$(rbenv init -)"
# ------------------------------------------------------------------------------
# Dependencies
# ------------------------------------------------------------------------------
# For debugging purposes, output the current version of Ruby, and from where
# it was set.
rbenv version
# Install any gems the tests may require.
bundle
# ------------------------------------------------------------------------------
# Test
# ------------------------------------------------------------------------------
# Run the tests.
bundle exec rake ci:setup:testunit test