Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Commit ee385ee

Browse files
committed
feat(ci): add first circleci lint and check script
1 parent 1c7f231 commit ee385ee

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

circle.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 2
2+
executorType: docker
3+
jobs:
4+
build:
5+
resource_class: large
6+
environment:
7+
- GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
8+
- REACT_NATIVE_MAX_WORKERS: 2
9+
- ANDROID_BUILD_TOOLS_VERSION: "26.0.2"
10+
working_directory: ~/app
11+
docker:
12+
- image: entria/react-native-android:0.1.72
13+
steps:
14+
- checkout
15+
- restore_cache:
16+
keys:
17+
- v1-npm-{{ .Branch }}-{{ checksum "yarn.lock" }}
18+
- v1-npm
19+
- run:
20+
name: Install Dependencies
21+
command: yarn install
22+
- run:
23+
name: Lint
24+
command: yarn lint
25+
- run:
26+
name: Run Checks
27+
command: |
28+
cd android
29+
chmod +x ./gradlew && ./gradlew check
30+
- save_cache:
31+
key: v1-npm
32+
paths:
33+
- node_modules/
34+
- save_cache:
35+
key: v1-npm-{{ .Branch }}-{{ checksum "yarn.lock" }}
36+
paths:
37+
- node_modules/

0 commit comments

Comments
 (0)