Skip to content

Commit

Permalink
Add CI build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarni committed Jun 14, 2017
1 parent 3b5f1df commit e04a21f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 47 deletions.
4 changes: 0 additions & 4 deletions build.sh

This file was deleted.

35 changes: 35 additions & 0 deletions buildCI.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash -e

function should_publish() {
[[ $GIT_BRANCH =~ ^(origin/)?master$ ]]
}

main() {
git clean -f -x -d
npm install
npm run compile

rm -rf target/
mkdir -p target/archive

./run_visual-tests.sh

cp -R examples target/archive
}

_move_gemini_files() {
testRes=$?

cp -R gemini-report/ target/archive

exit ${testRes}
}

trap "_move_gemini_files" INT TERM EXIT

main "$@"

if should_publish; then
npm run has-published -s || npm publish
bob ci job build --jobname ffe-design-system_build_deploy
fi
43 changes: 0 additions & 43 deletions flow.sh

This file was deleted.

0 comments on commit e04a21f

Please sign in to comment.