File tree 2 files changed +27
-4
lines changed
2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,17 @@ addons:
14
14
packages :
15
15
- libgmp-dev
16
16
17
+ env :
18
+ - COMPONENT=client
19
+ - COMPONENT=server
20
+
17
21
before_install :
18
22
- mkdir -p ~/.local/bin
19
23
- export PATH=$HOME/.local/bin:$PATH
20
24
- curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
21
25
22
26
script :
23
- # Set a timeout of 35 minutes. We could use travis_wait here, but travis_wait
24
- # doesn't produce any output until the command finishes, and also doesn't
25
- # always show all of the command's output.
26
- - timeout 35m stack --no-terminal -j1 --install-ghc build
27
+ ./ci/build.sh
27
28
28
29
notifications :
29
30
email : true
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -ex
4
+
5
+ case $COMPONENT in
6
+ server)
7
+ # Set a timeout of 35 minutes. We could use travis_wait here, but travis_wait
8
+ # doesn't produce any output until the command finishes, and also doesn't
9
+ # always show all of the command's output.
10
+ timeout 35m stack --no-terminal -j1 --install-ghc build
11
+ ;;
12
+ client)
13
+ cd client
14
+ npm install
15
+ npm run build
16
+ npm run bundle
17
+ ;;
18
+ * )
19
+ echo >&2 " Unrecognised component: $COMPONENT "
20
+ exit 1
21
+ ;;
22
+ esac
You can’t perform that action at this time.
0 commit comments