forked from ohler55/ox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_test.sh
executable file
·53 lines (46 loc) · 948 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
#!/bin/sh
for ruby in \
1.8.7-p374\
rbx-2.2.6\
1.9.3-p484\
2.1.2
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.1.2\n"
cd ext/ox
rbenv local 2.1.2
cd ../../test
rbenv local 2.1.2
cd sax
rbenv local 2.1.2
cd ../..
echo "\n"