diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 1fe9d7f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,182 +0,0 @@ -version: 2.1 - -orbs: - windows: circleci/windows@2.4.0 - -jobs: - install: - executor: - name: windows/default - shell: powershell.exe - steps: - - run: git config --global core.autocrlf false - - checkout - - run: - name: "Display environment information" - command: npx envinfo - - run: - name: "Install library dependencies with Yarn" - command: | - yarn install --frozen-lockfile - - run: - name: "Restore NuGet packages for Components" - command: | - nuget restore .\windows\ReactNativeWindowsHello.sln - - run: - name: "Restore .NET dependencies" - command: | - msbuild -t:restore .\windows\ReactNativeWindowsHello.sln - - save_cache: - key: v3-deps-{{ .Branch }}-{{ checksum "windows/ReactNativeWindowsHello.sln" }}-{{ checksum "package.json" }} - paths: - - node_modules - - windows/packages - - verify-javascript: - executor: - name: windows/default - shell: powershell.exe - steps: - - run: git config --global core.autocrlf false - - checkout - - restore_cache: - keys: - - v3-deps-{{ .Branch }}-{{ checksum "windows/ReactNativeWindowsHello.sln" }}-{{ checksum "package.json" }} - - v3-deps- - - run: - name: "Verify the JS code formatting" - command: npx eslint . - - verify-cpp: - executor: - name: windows/default - shell: powershell.exe - steps: - - run: git config --global core.autocrlf false - - checkout - - run: - name: Configure clang-format - command: | - git config clangFormat.binary node_modules/.bin/clang-format - git config clangFormat.style file - - restore_cache: - keys: - - v3-deps-{{ .Branch }}-{{ checksum "windows/ReactNativeWindowsHello.sln" }}-{{ checksum "package.json" }} - - v3-deps- - - run: - name: "Verify the C++ code formatting" - command: | - npx clang-format --verbose --dry-run -Werror .\windows\ReactNativeWindowsHello\Source\*.hpp - npx clang-format --verbose --dry-run -Werror .\windows\ReactNativeWindowsHello\Source\SignIn\*.cpp - npx clang-format --verbose --dry-run -Werror .\windows\ReactNativeWindowsHello\Source\SignIn\*.hpp - - tests-javascript: - executor: - name: windows/default - shell: powershell.exe - steps: - - run: git config --global core.autocrlf false - - checkout - - restore_cache: - keys: - - v3-deps-{{ .Branch }}-{{ checksum "windows/ReactNativeWindowsHello.sln" }}-{{ checksum "package.json" }} - - v3-deps- - - run: - name: "Run the unit tests for JavaScript implementation" - command: npx jest - - tests-cpp: - executor: - name: windows/default - shell: powershell.exe - steps: - - run: git config --global core.autocrlf false - - checkout - - restore_cache: - keys: - - v3-deps-{{ .Branch }}-{{ checksum "windows/ReactNativeWindowsHello.sln" }}-{{ checksum "package.json" }} - - v3-deps- - - run: - name: "Build the GTests project" - command: msbuild -p:Configuration=debug -p:Platform=x64 -target:UnitTests .\windows\ReactNativeWindowsHello.sln - - run: - name: "Run the unit tests for C++ implementation" - command: .\windows\Build\UnitTests-Debug-x64\UnitTests.exe - - build-example-application: - parameters: - configuration: - type: enum - enum: ["debug", "release"] - platform: - type: enum - enum: ["ARM64", "x64", "ARM", "Win32"] - executor: windows/default - steps: - - run: git config --global core.autocrlf false - - checkout - - run: - name: "install dependencies for example app" - command: cd example; yarn install - - run: - name: "Build the application for Windows OS" - command: cd example; npx react-native run-windows --arch << parameters.platform >> --no-deploy --no-launch --no-packager --no-autolink --logging -- << parameters.configuration >> - - build-windows-solution: - parameters: - configuration: - type: enum - enum: ["debug", "release"] - platform: - type: enum - enum: ["ARM64", "x64", "ARM", "Win32"] - executor: - name: windows/default - shell: powershell.exe - steps: - - run: git config --global core.autocrlf false - - checkout - - restore_cache: - keys: - - v3-deps-{{ .Branch }}-{{ checksum "windows/ReactNativeWindowsHello.sln" }}-{{ checksum "package.json" }} - - v3-deps- - - run: - name: "Build the Windows project" - command: msbuild -p:Configuration=<< parameters.configuration >> -p:Platform=<< parameters.platform >> .\\windows\\ReactNativeWindowsHello.sln - - -workflows: - version: 2.1 - build-x64: - jobs: - - install - - verify-javascript: - requires: - - install - - verify-cpp: - requires: - - install - - tests-javascript: - requires: - - verify-javascript - - build-windows-solution: - name: build-project-release-x64 - configuration: "release" - platform: "x64" - requires: - - verify-cpp - - verify-javascript - - build-windows-solution: - name: build-project-debug-x64 - configuration: "debug" - platform: "x64" - requires: - - verify-cpp - - verify-javascript - - build-example-application: - name: build-example-release-app-x64 - configuration: "release" - platform: "x64" - requires: - - verify-cpp - - verify-javascript