Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
84 lines (74 loc) · 1.73 KB

File metadata and controls

executable file
·
84 lines (74 loc) · 1.73 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh
#
########################################################################
# Integration Build Script
# $1 = all (Run integration tests)
#
# Maintainer: id774 <idnanashi@gmail.com>
#
# v1.5 6/28,2013
# Always using latest gems.
# v1.4 5/13,2013
# Fix bundler environment.
# v1.3 2/26,2013
# Remove script/bootstrap.
# v1.2 6/16,2012
# Add all option for integration tests.
# v1.1 6/14,2012
# Correspond to unscaffold subcommand.
# v1.0 3/16,2012
# First.
########################################################################
kickstart() {
export RACK_ROOT="."
export RACK_ENV="test"
#export DATABASE_URL="$RACK_ROOT/db"
ruby -v
test_subcommand log info started.
}
exec_rspec() {
$RACK_ROOT/bin/automatic -v
#bundle install --path vendor/gems
bundle update
bundle exec rake simplecov
}
run_test() {
while [ $# -gt 0 ]
do
bundle exec $RACK_ROOT/bin/automatic -c $1
test_subcommand log info $?
shift
done
}
load_tests() {
for YAML_FILE in "$RACK_ROOT/test/integration/test_*.yml"
do
run_test $YAML_FILE
done
unset YAML_FILE
}
test_subcommand() {
$RACK_ROOT/bin/automatic $*
}
test_scaffold() {
test_subcommand scaffold
test_subcommand unscaffold
}
added_tests() {
test -f $HOME/.automatic || test_scaffold
test_subcommand autodiscovery http://blog.id774.net/blogs/
test_subcommand opmlparser "$RACK_ROOT/test/fixtures/sampleOPML.xml"
test_subcommand feedparser http://blog.id774.net/blogs/feed/ > /dev/null
test_subcommand log info finished.
}
integration() {
load_tests
added_tests
}
main() {
kickstart
exec_rspec
test -n "$1" && integration
}
set -ex
main $*
Morty Proxy This is a proxified and sanitized view of the page, visit original site.