Add watchman to docker image

This commit is contained in:
Adam Miskiewicz
2017-05-15 20:07:37 -07:00
parent 228b800436
commit 0938ca7fa8
3 changed files with 16 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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/*