Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #194 from gnosis/develop
Browse files Browse the repository at this point in the history
Add AppVeyor deployment
  • Loading branch information
giacomolicari authored Sep 12, 2018
2 parents e2b4b3f + e0b4a44 commit 1584998
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ script:
- npm run test-dapp
- npm run test
before_deploy:
- chmod +x prepare_deploy.sh
- ./prepare_deploy.sh
- chmod +x prepare_deploy_linux.sh
- ./prepare_deploy_linux.sh
deploy:
- provider: s3
bucket: wallet-development
Expand Down
57 changes: 57 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
platform:
- x64

# branches to build
branches:
# whitelist
only:
- master
- develop

skip_tags: true

# Maximum number of concurrent jobs for the project
max_jobs: 1

# set clone depth
clone_depth: 5 # clone entire repository history if not defined

# to run your custom scripts instead of automatic tests
# test_script:
# - npm run test-dapp
# - npm run test

# scripts that run after cloning repository
install:
- ps: Install-Product node 8 x64
- ps: $env:DEBUG = "electron-builder"
- npm i -g --production windows-build-tools
- cd dapp && rm -rf node_modules && rm package-lock.json && yarn add secp256k1 && yarn install && cd ..

# to run your custom scripts instead of automatic MSBuild
build_script:
- cd dapp/ && mkdir dist && yarn run build-win

# scripts to run before deployment
after_build:
- chmod +x prepare_deploy_win.sh
- prepare_deploy_win.sh
- cp dapp/dist/*.exe .

artifacts:
path: '*.exe'
name: exe

environment:
access_key_id:
secure: RpimOJdJROGTnBToRjUoRBn7Tlnwc1eNHaAHpFcy1yk=
secret_access_key:
secure: LSAZENPbfm21aJt8qzYmuVmmlXnLGIwOKheK+hIlMd9jr2JsJyBjUhEbre6F6ZNq

deploy:
provider: S3
access_key_id: "%access_key_id%"
secret_access_key: "%secret_access_key%"
bucket: wallet-desktop-builds
region: us-east-1
artifact: "exe"
1 change: 0 additions & 1 deletion dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"electron": "1.8.4",
"electron-builder": "20.15.1",
"electron-packager": "8.7.2",
"electron-rebuild": "1.7.3",
"growl": "^1.10.5",
"grunt": "1.0.0",
"grunt-contrib-jshint": "1.1.0",
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions prepare_deploy_win.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

echo "=== PREPARE DEPLOY ==="

if [[ ${APPVEYOR_REPO_TAG} == true ]]; then
# it is a TAG
# rename .exe file
echo "Renaming multisigweb.*.exe to multisigweb-$APPVEYOR_REPO_TAG.exe"
mv dapp/dist/multisigweb*.exe dapp/dist/multisigweb-$APPVEYOR_REPO_TAG.exe
fi

echo "=== PREPARE DEPLOY DONE ==="

0 comments on commit 1584998

Please sign in to comment.