Skip to content

Commit

Permalink
feat(mobile): add circle ci node and android
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 2, 2018
1 parent 8680a04 commit 3f98576
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Expand Up @@ -108,10 +108,59 @@ jobs:
- store_test_results:
path: /tmp/test-results

node:
working_directory: ~/go/src/github.com/berty/berty
docker:
- image: circleci/node:8
steps:
- checkout

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

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

- run: cd client/react-native && make deps

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

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

- persist_to_workspace:
root: ~/go/src/github.com/berty/berty
paths:
- client/react-native/node_modules
- client/react-native/gomobile/node_modules
- client/react-native/common/node_modules
- client/react-native/mobile/node_modules

android:
working_directory: ~/go/src/github.com/berty/berty/client/react-native/
docker:
- image: sfroment/test:lastest
steps:
- checkout:
path: ~/go/src/github.com/berty/berty/

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


workflows:
version: 2
commit:
jobs:
- project.lint
- core.go.test
- docker.build
- node
- android:
requires:
- node

0 comments on commit 3f98576

Please sign in to comment.