forked from senecajs/seneca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prerelease.sh
executable file
·84 lines (70 loc) · 1.52 KB
/
prerelease.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
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
#!/usr/bin/env bash
PWD=$(pwd -L)
rm -rf node_modules
npm install
npm link
sh ./test/test-included-plugins.sh
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
npm test
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
cd doc/examples
sh ./testrun.sh
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
cd ../..
# setup test folder
cd ..
mkdir -p test-seneca
TEST_PWD=$(pwd -L)
cd test-seneca
# run seneca-verify
rm -rf seneca-verify
git clone [email protected]:rjrodger/seneca-verify.git
cd seneca-verify
npm link seneca
npm install
node verify
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
# run seneca-mvp
cd ..
rm -rf seneca-mvp
git clone [email protected]:rjrodger/seneca-mvp.git
cd seneca-mvp
cp options.example.js options.mine.js
npm link seneca
npm install
npm install bower
cd public
node ../node_modules/.bin/bower install
cd ..
node mvp-app.js
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
# run seneca-examples
cd ..
rm -rf seneca-examples
git clone [email protected]:rjrodger/seneca-examples.git
cd seneca-examples/micro-services
npm link seneca
npm install
node .
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
# test level store
cd ..
rm -rf seneca-level-store
git clone [email protected]:senecajs/seneca-level-store.git
cd seneca-level-store
npm link seneca
npm install
npm test
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
# test mem store
cd ..
rm -rf seneca-mem-store
git clone [email protected]:senecajs/seneca-mem-store.git
cd seneca-mem-store
npm link seneca
npm install
npm test
ec=$?; if [[ $ec != 0 ]]; then exit $ec; fi
# cleanup
rm -rf $TEST_PWD
cd $PWD