Skip to content

Commit

Permalink
enable build on travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed May 12, 2016
1 parent 53820f7 commit 223366b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: bash
sudo: required
services:
- docker
before_script:
- cd ..
script:
- chmod ugo+x cf-webui/ci/*.sh
- docker run -it -v $(pwd):/root/sources -w /root/sources node:6 cf-webui/ci/build.sh
18 changes: 18 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e
OUTPUT="$PWD/cf-webui-app"

echo "DEBUG - OUTPUT: <$OUTPUT> - VERSION: <$VERSION>"
mkdir -p $OUTPUT


pushd cf-webui
npm install
npm install grunt-cli
export PATH=$PWD/node_modules/grunt-cli/bin:$PATH
grunt build
cp -R build/* $OUTPUT
popd


0 comments on commit 223366b

Please sign in to comment.