File tree Expand file tree Collapse file tree 1 file changed +19
-21
lines changed Expand file tree Collapse file tree 1 file changed +19
-21
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
+
3
+ defaults : &defaults
4
+ machine : true
5
+ working_directory : ~/project
6
+
7
+ aliases :
8
+ - &build-docker
9
+ name : Install curl
10
+ command : |
11
+ docker build -t react-native-community/react-native .
12
+ docker run --rm --name rn-env react-native-community/react-native bin/sh -c "npx envinfo"
13
+
2
14
jobs :
3
- build :
4
- machine : true
5
- working_directory : ~/project
6
- steps :
7
- - checkout
8
- - run :
9
- name : Build docker image
10
- command : |
11
- docker build -t react-native-community/react-native .
12
- - run :
13
- name : Docker info
14
- command : |
15
- docker run --rm --name rn-env react-native-community/react-native bin/sh -c "npx envinfo"
16
15
test :
17
- machine : true
16
+ << : *defaults
18
17
steps :
18
+ - checkout
19
+ - run : *build-docker
19
20
- run :
20
21
name : Test
21
22
command : |
24
25
docker run --rm --name rn-build -v $PWD:/pwd -w /pwd react-native-community/react-native /bin/sh -c \
25
26
"yarn install && ./gradlew RNTester:android:app:assembleRelease && ./scripts/circleci/buck_fetch.sh"
26
27
deploy :
27
- machine : true
28
+ << : *defaults
28
29
steps :
30
+ - checkout
31
+ - run : *build-docker
29
32
- run :
30
33
name : Deploy docker
31
34
command : |
@@ -37,13 +40,8 @@ workflows:
37
40
version : 2
38
41
main :
39
42
jobs :
40
- - build
41
- - test :
42
- requires :
43
- - build
43
+ - test
44
44
- deploy :
45
- requires :
46
- - build
47
45
filters :
48
46
branches :
49
47
only : master
You can’t perform that action at this time.
0 commit comments