Skip to content

Commit 1b2a552

Browse files
gengjiawenfacebook-github-bot
authored andcommitted
add windows ci (#20281)
Summary: [![Build status](https://ci.appveyor.com/api/projects/status/79bl3twr4palqmra/branch/feature/appveyor?svg=true)](https://ci.appveyor.com/project/gengjiawen/react-native/branch/master) Add windows ci pass all current ci. none [GENERAL] [INTERNAL] [CI] - add windows ci Pull Request resolved: #20281 Differential Revision: D8924625 Pulled By: hramos fbshipit-source-id: 6b933a8affe7c131c0fd02694f6177885a196611
1 parent ca01290 commit 1b2a552

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [React Native](https://facebook.github.io/react-native/) · [![Circle CI Status](https://circleci.com/gh/facebook/react-native.svg?style=shield)](https://circleci.com/gh/facebook/react-native) [![npm version](https://badge.fury.io/js/react-native.svg)](https://badge.fury.io/js/react-native) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#pull-requests)
1+
# [React Native](https://facebook.github.io/react-native/) · [![Circle CI Status](https://circleci.com/gh/facebook/react-native.svg?style=shield)](https://circleci.com/gh/facebook/react-native) [![Build status](https://ci.appveyor.com/api/projects/status/github/facebook/react-native?branch=master&svg=true)](https://ci.appveyor.com/project/facebok/react-native/branch/master) [![npm version](https://badge.fury.io/js/react-native.svg)](https://badge.fury.io/js/react-native) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#pull-requests)
22

33
Learn once, write anywhere: Build mobile apps with React.
44

appveyor.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
environment:
2+
ANDROID_HOME: "C:\\android-sdk-windows"
3+
ANDROID_NDK: "C:\\android-sdk-windows\\android-ndk-r10e"
4+
ANDROID_BUILD_VERSION: 26
5+
ANDROID_TOOLS_VERSION: 26.0.3
6+
7+
GRADLE_OPTS: -Dorg.gradle.daemon=false
8+
9+
SDK_TOOLS_URL: https://dl.google.com/android/repository/sdk-tools-windows-3859397.zip
10+
NDK_TOOLS_URL: https://dl.google.com/android/repository/android-ndk-r10e-windows-x86_64.zip
11+
12+
matrix:
13+
- nodejs_version: 8
14+
- nodejs_version: 10
15+
16+
install:
17+
# Install Android SDK Tools
18+
- mkdir "%ANDROID_HOME%"
19+
- appveyor DownloadFile "%SDK_TOOLS_URL%" -FileName "%TMP%/sdk-tools.zip"
20+
- 7z x "%TMP%/sdk-tools.zip" -o"%ANDROID_HOME%" > nul
21+
- set PATH=%PATH%;"%ANDROID_HOME%\tools\bin"
22+
23+
- yes 2> nul | sdkmanager --licenses > nul
24+
- sdkmanager "system-images;android-19;google_apis;armeabi-v7a"
25+
- sdkmanager "platforms;android-%ANDROID_BUILD_VERSION%"
26+
- sdkmanager "build-tools;%ANDROID_TOOLS_VERSION%"
27+
- sdkmanager "add-ons;addon-google_apis-google-23"
28+
- sdkmanager "extras;android;m2repository"
29+
30+
- appveyor DownloadFile "%NDK_TOOLS_URL%" -FileName "%TMP%/ndk.zip"
31+
- 7z x "%TMP%/ndk.zip" -o"%ANDROID_HOME%" > nul
32+
33+
- ps: Install-Product node $env:nodejs_version
34+
- node --version
35+
- npm --version
36+
- appveyor-retry npm install
37+
38+
build_script:
39+
- gradlew.bat RNTester:android:app:assembleRelease
40+
41+
test_script:
42+
- npm test

0 commit comments

Comments
 (0)