mattermost-desktop/.circleci/config.yml

56 lines
1.8 KiB
YAML
Raw Normal View History

2017-07-11 08:01:23 -07:00
version: 2
jobs:
build:
working_directory: ~/mattermost-desktop
docker:
- image: electronuserland/builder:wine-mono
steps:
- checkout
- restore_cache:
key: npm-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- restore_cache:
key: npm-{{ arch }}-{{ .Branch }}-{{ checksum "src/yarn.lock" }}
- run: apt-get update && apt-get -y install --no-install-recommends jq icnsutils graphicsmagick
- run: yarn
- run: npm run build
- run: npm run package:windows
- run: npm run package:mac
- run: npm run package:linux
- run: mkdir -p /tmp/artifacts
- run: sh -x ./scripts/cp_artifacts.sh release /tmp/artifacts
- save_cache:
key: npm-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- "node_modules"
- "~/.cache/electron"
- "~/.cache/electron-builder"
- save_cache:
key: npm-{{ arch }}-{{ .Branch }}-{{ checksum "src/yarn.lock" }}
paths:
- "src/node_modules"
- store_artifacts:
path: /tmp/artifacts/
destination: packages
test:
working_directory: ~/mattermost-desktop
docker:
- image: electronuserland/builder:wine-chrome
steps:
- checkout
- run: apt-get update && apt-get -y install --no-install-recommends libgconf-2-4
2017-07-11 08:01:23 -07:00
- run: yarn
# https://github.com/SeleniumHQ/docker-selenium/issues/222#issuecomment-221307583
- run: DBUS_SESSION_BUS_ADDRESS=/dev/null xvfb-run npm test
- run: mkdir -p /tmp/test-results
- run: cp test-results.xml /tmp/test-results/
- store_test_results:
path: /tmp/test-results
workflows:
version: 2
build_and_test:
jobs:
- build
- test