Skip to content

Commit

Permalink
Travis CI: add upload of artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Apr 29, 2017
1 parent 6cce5fd commit bb60642
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ script:
after_success:
- npm run coverage
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- sh -x ./ci/config_travis.sh
- sh -x ./ci/upload_arts.sh
- sh -x ./ci/update_pages.sh

6 changes: 6 additions & 0 deletions ci/config_travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
COMMIT_AUTHOR_EMAIL=`git --no-pager log -1 --pretty=format:"%ae" HEAD`

git --global config user.name "Travis CI"
git --global config user.email "$COMMIT_AUTHOR_EMAIL"
echo "https://${GIT_TOKEN}:x-oauth-basic@github.com\n" > ~/.git-credentials
git --global config remote.origin.url "https://${GIT_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git"
6 changes: 0 additions & 6 deletions ci/update_pages.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
REPO=`git config remote.origin.url`
SHA=`git log -1 --format="%s(%h %cd)" --date=short`
COMMIT_AUTHOR_EMAIL=`git --no-pager log -1 --pretty=format:"%ae" HEAD`

git clone $REPO html/

Expand All @@ -24,11 +23,6 @@ cd html

git status

git config user.name "Travis CI"
git config user.email "$COMMIT_AUTHOR_EMAIL"
echo "https://${GIT_TOKEN}:x-oauth-basic@github.com\n" > ~/.git-credentials
git config remote.origin.url "https://${GIT_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git"

git add --all .
git commit -m "Auto-update" -m "Commit: ${SHA}"
git push origin HEAD
10 changes: 10 additions & 0 deletions ci/upload_arts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

REPO=`git config remote.origin.url`
SHA=`git log -1 --format="%s(%h %cd)" --date=short`

git status

git add --all .
git commit -m "Upload Artifacts [ci skip]" -m "Commit: ${SHA}"
git push origin HEAD
3 changes: 2 additions & 1 deletion src/jiken.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
/**
* Browser EventEmitter
*
* Mimics API of node.js [EventEmitter]{@link https://nodejs.org/api/events.html}
* Mimics API of node.js [EventEmitter]{@link https://nodejs.org/api/events.html}.
*
* And gives you some extra features.
*
* ## Usage
Expand Down

0 comments on commit bb60642

Please sign in to comment.