Skip to content

Commit

Permalink
Merge pull request #634 from LiskHQ/609-linux-build-in-jenkins
Browse files Browse the repository at this point in the history
Automate Linux desktop build in Jenkins - Closes #609
  • Loading branch information
slaweet authored Mar 29, 2018
2 parents ba430fb + d89d13a commit ad76c87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,15 @@ node('lisk-hub') {
npm run --silent build:testnet
rsync -axl --delete --rsync-path="mkdir -p /var/www/test/${JOB_NAME%/*}/$BRANCH_NAME/ && rsync" $WORKSPACE/app/build/ jenkins@master-01:/var/www/test/${JOB_NAME%/*}/$BRANCH_NAME/
npm run --silent bundlesize
if [ -z $CHANGE_BRANCH ]; then
USE_SYSTEM_XORRISO=true npm run dist
else
echo "Skipping desktop build for Linux because we're not on 'development' branch"
fi
'''
archiveArtifacts artifacts: 'app/build/'
archiveArtifacts artifacts: 'app/build-testnet/'
archiveArtifacts allowEmptyArchive: true, artifacts: 'dist/lisk-hub*'
githubNotify context: 'Jenkins test deployment', description: 'Commit was deployed to test', status: 'SUCCESS', targetUrl: "${HUDSON_URL}test/" + "${JOB_NAME}".tokenize('/')[0] + "/${BRANCH_NAME}"
} catch (err) {
echo "Error: ${err}"
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"analyze-bundles": "webpack --config ./config/webpack.config.analyze",
"test-live": "npm test -- --auto-watch --no-single-run",
"start": "electron ./app/",
"dist": "build --ia32 --x64 --armv7l --publish onTag",
"dist": "build --ia32 --x64 --publish onTag",
"dist:win": "build --win --ia32 --x64 --publish onTag",
"dist:mac": "build --mac",
"dist:linux": "build --linux --ia32 --x64 --armv7l",
Expand Down Expand Up @@ -196,10 +196,7 @@
],
"linux": {
"target": [
"AppImage",
"deb",
"rpm",
"tar.gz"
"AppImage"
],
"desktop": {
"MimeType": "application/lisk;x-scheme-handler/lisk"
Expand Down

0 comments on commit ad76c87

Please sign in to comment.