Merge pull request #64 from andrerfneves/feature/build-pipeline
Build Pipeline
This commit is contained in:
commit
a94fd5eb55
|
@ -12,8 +12,6 @@ jobs:
|
||||||
- run: apt-get -y update
|
- run: apt-get -y update
|
||||||
- run: apt-get -y install libusb-1.0-0-dev graphicsmagick libudev-dev
|
- 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
|
- 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 install
|
- run: yarn install
|
||||||
- run:
|
- run:
|
||||||
name: Run Webpack
|
name: Run Webpack
|
||||||
|
@ -35,11 +33,41 @@ jobs:
|
||||||
kill -s SIGINT $(pgrep ffmpeg)
|
kill -s SIGINT $(pgrep ffmpeg)
|
||||||
sleep 10
|
sleep 10
|
||||||
kill -s SIGTERM $(pgrep Xvfb)
|
kill -s SIGTERM $(pgrep Xvfb)
|
||||||
|
- save_cache:
|
||||||
|
key: zec-dependencies-cache-{{ checksum "yarn.lock" }}
|
||||||
|
paths:
|
||||||
|
- /usr/local/share/.cache/yarn/v2
|
||||||
|
- ./node_modules
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/e2e-record.mp4
|
path: /tmp/e2e-record.mp4
|
||||||
destination: e2e-record.mp4
|
destination: e2e-record.mp4
|
||||||
|
|
||||||
|
build_linux:
|
||||||
|
docker:
|
||||||
|
- image: electronuserland/builder:wine-chrome
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
key: zec-dependencies-cache-{{ checksum "yarn.lock" }}
|
||||||
|
- 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
|
||||||
|
- run:
|
||||||
|
name: Upload to Slack
|
||||||
|
command: |
|
||||||
|
export GIT_COMMIT_DESC=$(git log --format=oneline -n 1 | sed -E 's/^[^ ]+ (.*)$/\1/g')
|
||||||
|
curl -F file=@dist/zec-react-wallet_0.3.0_amd64.deb -F channels=$SLACK_CHANNEL -F token=$SLACK_API_TOKEN -F title="${CIRCLE_PROJECT_REPONAME} | branch -> ${CIRCLE_BRANCH} | commit -> ${GIT_COMMIT_DESC}" https://slack.com/api/files.upload
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
test:
|
build_test:
|
||||||
jobs:
|
jobs:
|
||||||
- test
|
- test
|
||||||
|
- build_linux:
|
||||||
|
requires:
|
||||||
|
- test
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"description": "Zcash Reference Wallet",
|
"description": "Zcash Reference Wallet",
|
||||||
"main": "config/main.js",
|
"main": "config/main.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"homepage": "https://zfnd.org/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "yarn check --integrity && concurrently \"cross-env BROWSER=none yarn dev\" \"wait-on http://0.0.0.0:8080 && yarn electron:dev\"",
|
"start": "yarn check --integrity && 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",
|
"dev": "webpack-dev-server --config config/webpack-dev.config.js --mode development --open --hot",
|
||||||
|
|
Loading…
Reference in New Issue