File tree Expand file tree Collapse file tree 2 files changed +19
-23
lines changed Expand file tree Collapse file tree 2 files changed +19
-23
lines changed Original file line number Diff line number Diff line change 1
- .code
2
1
.vagrant
3
2
reports
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -eo pipefail
2
3
3
- set -e
4
4
5
-
6
- mkdir -p .code/{node,ruby}
5
+ mkdir -p ~ /src/{node,ruby}
7
6
8
7
checkout () {
9
8
local dir=" $1 "
10
9
local repo=" $2 "
11
- local patch=" ../../../../patches/$repo .diff"
12
-
13
- if [[ -d " $dir " ]] ; then
14
- cd " $dir "
15
- git clean -fd
16
- git fetch origin
17
- git reset --hard @{u}
18
- else
19
- git clone " git://github.com/faye/$repo .git" " $dir "
20
- cd " $dir "
21
- fi
22
- if [[ -f " $patch " ]] ; then
23
- git apply " $patch "
24
- fi
10
+ local patch=" /vagrant/patches/$repo .diff"
11
+
12
+ [[ -d " $dir " ]] || git clone " git://github.com/faye/$repo .git" " $dir "
13
+
14
+ cd " $dir "
15
+ git clean -fd
16
+ git fetch origin
17
+ git reset --hard @{u}
18
+
19
+ [[ -f " $patch " ]] && git apply " $patch "
20
+
25
21
cd -
26
22
}
27
23
28
24
29
- cd .code /node
25
+ cd ~ /src /node
30
26
31
27
install-node-modules () {
32
28
local dir=" $1 "
@@ -70,21 +66,22 @@ link-repo websocket-extensions extensions
70
66
cd -
71
67
72
68
73
- cd .. /ruby
74
- . /usr/local/share/chruby/chruby.sh
69
+ cd ~ /src /ruby
70
+ source /usr/local/share/chruby/chruby.sh
75
71
76
72
RUBY_VERSIONS=(
77
73
ruby-1.9
78
74
ruby-2.{0..7}
79
- jruby-{1.7,9.1,9.2}
75
+ ruby-3.0
76
+ jruby-{1.7,9.2}
80
77
)
81
78
82
79
install-ruby-gems () {
83
80
local dir=" $1 "
84
81
85
82
cd " $dir "
86
83
rm -f Gemfile.lock
87
- ruby -S bundle install --path ../../.bundle
84
+ ruby -S bundle install
88
85
cd -
89
86
}
90
87
You can’t perform that action at this time.
0 commit comments