-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild
executable file
·48 lines (41 loc) · 921 Bytes
/
build
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
#!/usr/bin/env bash
set -euo pipefail # Bash 'strict mode'
export TERM=xterm-256color
tput setaf 3 # set text colour
echo '
(¯`·¯`·.¸¸.··´¯)
( \ / )
( ) Kirill ( )
(/ \)
(.·´¯`·.¸) '
tput setaf 36
echo ''
echo 'Installing backend dependencies.'
echo '================================'
tput sgr0 # reset text colour
gem install rspec
bundle install
tput setaf 36
echo ''
echo 'Running backend tests.'
echo '======================='
tput sgr0
bundle exec rspec
tput setaf 36
echo ''
echo 'Installing frontend dependencies.'
echo '================================='
tput sgr0
npm i
tput setaf 36
echo ''
echo 'Running frontend tests.'
echo '======================='
tput sgr0
npm test
tput setaf 36
echo ''
echo 'Build frontend JavaScript bundle.'
echo '================================='
tput sgr0
npx parcel build --dist-dir public/js js/src/app.js