Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate appveyor to circleci #28245

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions .appveyor/config.yml

This file was deleted.

76 changes: 75 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
version: 2.1

# -------------------------
# ORBS
# -------------------------

orbs:
win: circleci/[email protected]

# -------------------------
# DEFAULTS
# -------------------------
Expand All @@ -13,6 +20,7 @@ defaults: &defaults
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: &github_token_a "78a72af35445ca3f8180"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: &github_token_b "b1a98e0bbd56ff1ccba1"


# -------------------------
# EXECUTORS
# -------------------------
Expand Down Expand Up @@ -629,6 +637,70 @@ jobs:
command: |
echo "Nightly build run"

# -------------------------
# JOBS: Windows
# -------------------------
windows_job:
executor:
name: win/default
environment:
- ANDROID_HOME: "C:\\Android\\android-sdk"
- ANDROID_NDK: "C:\\Android\\android-sdk\\ndk\\19.2.5345600"
- ANDROID_BUILD_VERSION: 28
- ANDROID_TOOLS_VERSION: 29.0.2
- GRADLE_OPTS: -Dorg.gradle.daemon=false
- NDK_VERSION: 19.2.5345600
steps:
- checkout
- run:
name: Install Android SDK Tools
command: choco install android-sdk
- run:
name: Setup SDK
command: sdkmanager --licenses
- run: sdkmanager "system-images;android-19;google_apis;armeabi-v7a"
- run: sdkmanager "platforms;android-%ANDROID_BUILD_VERSION%"
- run: sdkmanager "build-tools;%ANDROID_TOOLS_VERSION%"
- run: sdkmanager "add-ons;addon-google_apis-google-23"
- run: sdkmanager "extras;android;m2repository"
- run: sdkmanager "ndk;%NDK_VERSION%"
- restore_cache:
keys:
- v5-win-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v5-win-node-{{ arch }}-{{ .Branch }}-
- v5-win-node-{{ arch }}-
- run:
name: Install Yarn
command: choco install yarn
- run:
name: Get Env info
command: npx envinfo@latest
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile --non-interactive
- save_cache:
key: v5-win-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- C:\Users\circleci\AppData\Local\Yarn
- run:
name: Flow Check Android
command: yarn flow-check-android
- run:
name: Flow Check iOS
command: yarn flow-check-ios
# TODO: reenable this test
# - run:
# name: Test Android Build
# command: ./gradlew.bat RNTester:android:app:assembleRelease
- run:
gengjiawen marked this conversation as resolved.
Show resolved Hide resolved
name: Run Test
command: yarn test
- save_cache:
key: v5-win-node-{{ arch }}-{{ .Branch }}-{{ checksum ".gradle" }}
paths:
- "%USERPROFILE%/.gradle/caches"
- "%USERPROFILE%/.gradle/wrapper"

# -------------------------
# WORK FLOWS
# -------------------------
Expand Down Expand Up @@ -731,7 +803,9 @@ workflows:
- js_coverage:
requires:
- setup

windows:
jobs:
- windows_job
nightly:
triggers:
- schedule:
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<a href="https://circleci.com/gh/facebook/react-native">
<img src="https://circleci.com/gh/facebook/react-native.svg?style=shield" alt="Current CircleCI build status." />
</a>
<a href="https://ci.appveyor.com/project/facebook/react-native/branch/master">
<img src="https://ci.appveyor.com/api/projects/status/g8d58ipi3auqdtrk/branch/master?svg=true" alt="Current Appveyor build status." />
</a>
<a href="https://www.npmjs.org/package/react-native">
<img src="https://badge.fury.io/js/react-native.svg" alt="Current npm package version." />
</a>
Expand Down