Giter Site home page Giter Site logo

binhapp / circleci-demo-react-native Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circleci-public/circleci-demo-react-native

0.0 1.0 0.0 1.4 MB

A demo React Native project that’s building on CircleCI 2.0 with Workflows

Home Page: https://circleci.com/gh/CircleCI-Public/circleci-demo-react-native

JavaScript 4.07% Ruby 56.51% Python 9.04% Java 7.47% Objective-C 22.91%

circleci-demo-react-native's Introduction

CircleCI Demo React Native App

CircleCI

Building and running locally

  1. Run yarn to install the JS dependencies.
  2. Run yarn test to run the JS tests (via jest).
  3. Run yarn start to run the app in development mode. You can open it in the Expo app on your phone. It will reload as you save edits to your files. You will see error messages and logs in your terminal window.

Running the iOS app in the iOS simulator

This requires Xcode 9 or newer.

  1. Run bundle install in the ios directory to install all dependencies.
  2. Run yarn run ios to start the app in the iOS simulator.

You can also build the app directly by opening the iOS project in Xcode and clicking Product -> Run.

To run tests, either select Product -> Test in Xcode, or run bundle exec fastlane test in the command line inside the ios directory.

Running the Android app in the Android emulator.

  1. Run bundle install in the android directory to install all dependencies.
  2. Run yarn run android to start the app in the Android emulator.

To run tests, run bundle exec fastlane test in the command line inside the android directory.

Running tests using the CircleCI CLI

You can run individual jobs from the configuration file using the CircleCI CLI.

Please see this doc for details on how to install the CLI. Once it is installed, you can run the build job by running the following in the root of this repo:

circleci build

To run the Android job, you can run the following:

circleci build --job android

It is currently not possible to run the iOS job locally.

Building on CircleCI

This example is ready to be built on CircleCI. Once you have copied or forked the repository, navigate to the CircleCI web interface, choose Projects and then Add project. Select a project and click Start building.

Try pushing some changes to your repo to see how a JS job runs, and then the Android and iOS tests get run concurrently.

circleci-demo-react-native's People

Contributors

appplemac avatar iynere avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.