-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
build_test.sh
executable file
·57 lines (49 loc) · 976 Bytes
/
build_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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
# 1.8.7-p374\
for ruby in \
rbx-2.2.6\
1.9.3-p547\
2.1.5\
2.2.2\
2.3.3\
2.4.1 \
do
echo "\n********************************************************************************"
echo "Building $ruby\n"
cd ext/ox
rbenv local $ruby
ruby extconf.rb
make clean
find . -name "*.rbc" -exec rm {} \;
make
echo "\nRunning tests for $ruby"
cd ../../test
rbenv local $ruby
./tests.rb
cd sax
rbenv local $ruby
./sax_test.rb
cd ../..
echo "\n"
done
PATH=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin:$PATH
echo "\n********************************************************************************"
echo "Building OS X Ruby\n"
cd ext/ox
ruby extconf.rb
make clean
make
echo "\nRunning tests for OS X Ruby"
cd ../../test
./tests.rb
./sax/sax_test.rb
cd ..
echo "resetting to 2.4.1\n"
cd ext/ox
rbenv local 2.4.1
cd ../../test
rbenv local 2.4.1
cd sax
rbenv local 2.4.1
cd ../..
echo "\n"