Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #11 from hunterlester/ci
Browse files Browse the repository at this point in the history
chore/CI: additionally auto-build for mock routing
  • Loading branch information
bochaco authored Sep 4, 2018
2 parents 863f5b7 + ed5e988 commit ba9ac1a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ os:

env:
- NODE_ENV=prod
- NODE_ENV=dev

language: node_js

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Upgrade @maidsafe/safe-node-app to `dev` branch branch of safe_app_nodejs Github repo
- WebId compatibility
- CI config updated for new repository
- CI config to release mock builds

### Fixed
- Readme instructions
Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ environment:
win_runtime: win-x64
arch: x64
plat: win32
- NODE_ENV: "dev"
win_runtime: win-x64
arch: x64
plat: win32

install:
- ps: Install-Product node $env:nodejs_version x64
Expand Down
10 changes: 9 additions & 1 deletion post-packaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const archiver = require('archiver');
const commandLineArgs = require('command-line-args')
const crypto = require('crypto');
const nodeFs = require('fs');
const env = process.env.NODE_ENV || 'production';
const isBuildingDev = /^dev/.test( env );

const optionDefinitions = [
{ name: 'example', alias: 'e', type: String,defaultOption: true, defaultValue: 'web_hosting_manager' },
Expand Down Expand Up @@ -52,7 +54,13 @@ if (platform === WINDOWS ) {
fs.ensureDirSync(dirForLog);
}

const RELEASE_FOLDER_NAME = `${pkgName}-v${pkg.version}-${PLATFORM_NAME}-x64`;
let devModifier = '';
if( isBuildingDev )
{
devModifier = '-dev'
}

const RELEASE_FOLDER_NAME = `${pkgName}-v${pkg.version}-${PLATFORM_NAME}-x64${devModifier}`;



Expand Down

0 comments on commit ba9ac1a

Please sign in to comment.