ci(config): add build_linux job

This commit is contained in:
George Lima 2019-01-31 12:51:59 -03:00
parent d0d7f2c4f8
commit 6d4ec8d3a6
2 changed files with 25 additions and 3 deletions

View File

@ -12,8 +12,7 @@ jobs:
- run: apt-get -y update
- run: apt-get -y install libusb-1.0-0-dev graphicsmagick libudev-dev
- run: apt-get -y install tmux xvfb libxtst6 libxss1 libgtk2.0-0 libnss3 libasound2 libgconf-2-4 ffmpeg frei0r-plugins
# TODO: Just a quick try
- run: rm yarn.lock
- run: yarn config delete proxy
- run: yarn install
- run:
name: Run Webpack
@ -38,8 +37,30 @@ jobs:
- store_artifacts:
path: /tmp/e2e-record.mp4
destination: e2e-record.mp4
- save_cache:
key: zec-dependencies-cache-{{ checksum "yarn.lock" }}
paths:
- /usr/local/share/.cache/yarn/v2
- ./node_modules
build_linux:
docker:
- image: electronuserland/builder:wine-chrome
steps:
- checkout
- restore_cache:
key: zec-dependencies-cache-{{ checksum "yarn.lock" }}
- run: apt-get -y update
- run: apt-get -y install libusb-1.0-0-dev icnsutils graphicsmagick libudev-dev
- run: yarn config delete proxy
- run: yarn electron:dist -l
- store_artifacts:
path: ./dist/zec-react-wallet_0.3.0_amd64.deb
destination: zec-react-wallet_0.3.0_amd64.deb
workflows:
version: 2
test:
build_test:
jobs:
- test
- build_linux:
requires:
- test

View File

@ -4,6 +4,7 @@
"description": "Zcash Reference Wallet",
"main": "config/main.js",
"license": "MIT",
"homepage": "https://zfnd.org/",
"scripts": {
"start": "concurrently \"cross-env BROWSER=none yarn dev\" \"wait-on http://0.0.0.0:8080 && yarn electron:dev\"",
"dev": "webpack-dev-server --config config/webpack-dev.config.js --mode development --open --hot",