Skip to content

Commit 1fd660f

Browse files
committed
Automated build of binaries from master to a dev tag using Travis
1 parent 1e639cd commit 1fd660f

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ pids
1010
# Users Environment Variables
1111
.lock-wscript
1212

13-
14-
dist/data/
1513
dist/assets/
14+
dist/css
15+
dist/data/
1616
dist/docs/
17+
dist/js
1718
dist/**/demo-app.*
1819
.tmp/
1920
.bower/

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ notifications:
2626
on_success: change
2727
on_failure: always
2828
on_start: never
29+
30+
deploy:
31+
- provider: script
32+
script: ci/bower-dev.sh
33+
skip_cleanup: true
34+
on:
35+
branch: master

ci/bower-dev.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -x
3+
HASH=$(git rev-parse HEAD)
4+
./node_modules/webpack/bin/webpack.js -p
5+
git add -f dist/css dist/js
6+
git commit -m "Automatic dev build from ${HASH}"
7+
git tag -f dev
8+
set +x
9+
git push -f https://$GITHUB_AUTH@github.com/ManageIQ/ui-components.git dev &> /dev/null
10+
echo "git push origin HEAD:gh-pages"

dist/css/ui-components.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/css/ui-components.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/js/ui-components.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/js/ui-components.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)