mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 17:23:18 +08:00
Add watchman to docker image
This commit is contained in:
@@ -2,7 +2,7 @@ version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: reactcommunity/node-ci:7.10.0-0 # custom image -- includes ocaml, libelf1, Yarn
|
||||
- image: reactcommunity/node-ci:7.10.0-1 # custom image -- includes ocaml, libelf1, Yarn
|
||||
parallelism: 3
|
||||
working_directory: ~/react-navigation
|
||||
steps:
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
# deploy expo playground demo
|
||||
exp login -u "$EXPO_USERNAME" -p "$EXPO_PASSWORD"
|
||||
cd examples/NavigationPlayground && yarn && exp publish
|
||||
cd examples/NavigationPlayground && exp publish
|
||||
fi
|
||||
- save_cache:
|
||||
key: v2-react-navigation-{{ .Branch }} # generate cache per branch
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
docker build -t reactcommunity/node-ci:7.10.0-0 -f ./ci.Dockerfile .
|
||||
docker push reactcommunity/node-ci:7.10.0-0
|
||||
docker build -t reactcommunity/node-ci:7.10.0-1 -f ./ci.Dockerfile .
|
||||
docker push reactcommunity/node-ci:7.10.0-1
|
||||
|
||||
@@ -5,3 +5,15 @@ RUN apt-get update -y && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
curl -o- -L https://yarnpkg.com/install.sh | bash && \
|
||||
npm install -g exp
|
||||
|
||||
RUN git clone https://github.com/facebook/watchman.git \
|
||||
&& cd watchman \
|
||||
&& git checkout v4.7.0 \
|
||||
&& apt-get update -y \
|
||||
&& apt-get install -y autoconf automake build-essential python-dev \
|
||||
&& ./autogen.sh \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& apt-get remove --purge -y autoconf automake build-essential python-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
Reference in New Issue
Block a user