forked from solidusio/solidus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·46 lines (38 loc) · 999 Bytes
/
build.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
#!/bin/sh
set -e
# Target postgresql. Override with: `DB=sqlite bash build.sh`
export DB=${DB:-postgresql}
# Solidus defaults
echo "Installing Solidus test dependencies"
bundle check || bundle update --quiet
# Solidus API
echo "***********************"
echo "* Testing Solidus API *"
echo "***********************"
cd api
bundle exec rspec spec
# Solidus Backend
echo "***************************"
echo "* Testing Solidus Backend *"
echo "***************************"
cd ../backend
bundle exec rspec spec
bundle exec teaspoon
# Solidus Core
echo "************************"
echo "* Testing Solidus Core *"
echo "************************"
cd ../core
bundle exec rspec spec
# Solidus Frontend
echo "****************************"
echo "* Testing Solidus Frontend *"
echo "****************************"
cd ../frontend
bundle exec rspec spec
# Solidus Sample
echo "**************************"
echo "* Testing Solidus Sample *"
echo "**************************"
cd ../sample
bundle exec rspec spec