Skip to content

Commit

Permalink
feat(circleci): add web ci
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Froment <sfroment42@gmail.com>
  • Loading branch information
sfroment committed Aug 14, 2018
1 parent d8b1e51 commit 46c2a26
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .circleci/config.yml
Expand Up @@ -259,6 +259,41 @@ jobs:
command: |
time bundle exec fastlane ios adhoc refresh_certificates:true use_temporary_keychain:true --verbose
client.rn.web:
working_directory: ~/go/src/github.com/berty/berty
docker:
- image: circleci/node:8
steps:
- checkout

- attach_workspace:
at: ~/go/src/github.com/berty/berty/


- restore_cache:
key: yarn-v1-{{ checksum "client/react-native/web/yarn.lock" }}-{{ arch }}

- restore_cache:
key: node-v1-{{ checksum "client/react-native/web/package.json" }}-{{ arch }}

- run: cd client/react-native/web && yarn

- save_cache:
key: yarn-v1-{{ checksum "client/react-native/web/yarn.lock" }}-{{ arch }}
paths:
- ~/.cache/yarn

- save_cache:
key: node-v1-{{ checksum "client/react-native/web/package.json" }}-{{ arch }}
paths:
- node_modules

- run:
name: build web app
working_directory: ~/go/src/github.com/berty/berty/client/react-native/web
command: |
yarn build
workflows:
version: 2
commit:
Expand All @@ -273,3 +308,6 @@ workflows:
- client.rn.ios:
requires:
- client.rn.node
- client.rn.web:
requires:
- client.rn.node

0 comments on commit 46c2a26

Please sign in to comment.