From ffa3a92534f391e15ce0f3461aea7d5e20ae9864 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Thu, 22 Feb 2018 16:39:41 -0800 Subject: [PATCH] First crack at publish from circle (#3574) * First crack at publish from circle * s/publish/deploy * Update snapshots * Try installing with yarn * Nice one * Shhh * Comment some things out and add a webhook * Add proper webhook url and add back build steps --- .circleci/config.yml | 17 +++++++++++++++++ .../__snapshots__/StackNavigator-test.js.snap | 8 ++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d8104746..bdfc0fda 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,9 +15,26 @@ jobs: - v3-react-navigation-master - run: yarn # install root deps - run: ./scripts/test.sh # run tests + - setup_remote_docker + - deploy: + command: | + set -x + VER="17.03.0-ce" + curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz + tar -xz -C /tmp -f /tmp/docker-$VER.tgz + mv /tmp/docker/* /usr/bin + + yarn global add exp + set +x + exp login -u "$EXPO_USERNAME" -p "$EXPO_PASSWORD" + set -x + cd examples/NavigationPlayground && yarn && exp publish --release-channel "${CIRCLE_SHA1}" - save_cache: key: v3-react-navigation-{{ .Branch }}-{{ checksum "package.json" }} paths: - ~/.cache/yarn - ~/react-navigation/examples/NavigationPlayground/node_modules - ~/react-navigation/examples/ReduxExample/node_modules +notify: + webhooks: + - url: https://react-navigation-ci.now.sh \ No newline at end of file diff --git a/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap b/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap index a826bd8a..89c860ce 100644 --- a/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap +++ b/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap @@ -48,7 +48,7 @@ exports[`StackNavigator applies correct values when headerRight is present 1`] = pointerEvents="auto" style={ Object { - "backgroundColor": "#E9E9EF", + "backgroundColor": "#EFEFF4", "bottom": 0, "left": 0, "opacity": 1, @@ -81,7 +81,7 @@ exports[`StackNavigator applies correct values when headerRight is present 1`] = style={ Object { "backgroundColor": "#F7F7F7", - "borderBottomColor": "rgba(0, 0, 0, .3)", + "borderBottomColor": "#A7A7AA", "borderBottomWidth": 0.5, "height": 64, "paddingBottom": 0, @@ -233,7 +233,7 @@ exports[`StackNavigator renders successfully 1`] = ` pointerEvents="auto" style={ Object { - "backgroundColor": "#E9E9EF", + "backgroundColor": "#EFEFF4", "bottom": 0, "left": 0, "opacity": 1, @@ -266,7 +266,7 @@ exports[`StackNavigator renders successfully 1`] = ` style={ Object { "backgroundColor": "#F7F7F7", - "borderBottomColor": "rgba(0, 0, 0, .3)", + "borderBottomColor": "#A7A7AA", "borderBottomWidth": 0.5, "height": 64, "paddingBottom": 0,