-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build frontend on CI * make ci/build.sh executable
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /usr/bin/env bash | ||
|
||
set -ex | ||
|
||
case $COMPONENT in | ||
server) | ||
# Set a timeout of 35 minutes. We could use travis_wait here, but travis_wait | ||
# doesn't produce any output until the command finishes, and also doesn't | ||
# always show all of the command's output. | ||
timeout 35m stack --no-terminal -j1 --install-ghc build | ||
;; | ||
client) | ||
cd client | ||
npm install | ||
npm run build | ||
npm run bundle | ||
;; | ||
*) | ||
echo >&2 "Unrecognised component: $COMPONENT" | ||
exit 1 | ||
;; | ||
esac |