Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from koenbok/version-number
Add build information and version number
- Loading branch information
Showing
12 changed files
with
103 additions
and
74 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
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,7 @@ | ||
# This gets automatically populated bij gulp | ||
|
||
exports.date = <%= date %> | ||
exports.branch = "<%= branch %>" | ||
exports.hash = "<%= hash %>" | ||
exports.build = <%= build %> | ||
exports.version = "#{exports.branch}/#{exports.hash}" |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,15 @@ | ||
describe "Version", -> | ||
|
||
it "should have a branch", -> | ||
(typeof Framer.Version.branch).should.equal "string" | ||
Framer.Version.branch.length.should.be.above(1) | ||
|
||
it "should have a hash", -> | ||
(typeof Framer.Version.hash).should.equal "string" | ||
Framer.Version.hash.length.should.be.above(5) | ||
|
||
it "should have a build", -> | ||
(typeof Framer.Version.build).should.equal "number" | ||
|
||
it "should have a date", -> | ||
(typeof Framer.Version.date).should.equal "number" |
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 |
---|---|---|
@@ -1,38 +1,25 @@ | ||
box: wercker/nodejs | ||
box: nolimitid/node-phantom-npm3 | ||
|
||
build: | ||
steps: | ||
- script: | ||
name: set up permissions | ||
name: load git revisions | ||
code: | | ||
export NODE_ENV=development | ||
chmod 777 -R . | ||
chmod 777 -R $WERCKER_CACHE_DIR | ||
- script: | ||
name: install npm@2 | ||
code: | | ||
npm cache clean | ||
sudo npm i -g npm | ||
- npm-install | ||
git remote set-url origin https://github.com/$WERCKER_GIT_OWNER/$WERCKER_GIT_REPOSITORY.git | ||
cd $WERCKER_SOURCE_DIR | ||
git fetch --unshallow | ||
- npm-test | ||
|
||
deploy: | ||
steps: | ||
- script: | ||
name: set up permissions | ||
name: load git revisions | ||
code: | | ||
export NODE_ENV=development | ||
chmod 777 -R . | ||
chmod 777 -R $WERCKER_CACHE_DIR | ||
- script: | ||
name: install npm@2 | ||
code: | | ||
npm cache clean | ||
sudo npm i -g npm | ||
git remote set-url origin https://github.com/$WERCKER_GIT_OWNER/$WERCKER_GIT_REPOSITORY.git | ||
cd $WERCKER_SOURCE_DIR | ||
git fetch --unshallow | ||
- install-packages: | ||
packages: zip | ||
- script: | ||
name: builds.framerjs.com | ||
code: make deploy | ||
|
||
# $WERCKER_OUTPUT_DIR | ||
code: make deploy |