message: try triggering CI for firebase functions
diff: @@ -45,39 +45,83 @@ jobs:
  - store_artifacts:
  path: test-results
  - # android:
  - # working_directory: ~/GaloyApp/mobile/android
  - # docker:
  - # - image: circleci/android:api-27-node8-alpha
  - # steps:
  - # - checkout:
  - # path: ~/GaloyApp/mobile
  + firebase-functions:
  + working_directory: ~/GaloyApp/backend/firebase/functions
  + docker:
  + - image: circleci/node:10
  + steps:
  + - checkout:
  + path: ~/GaloyApp
  - # - attach_workspace:
  - # at: ~/GaloyApp/mobile
  + - restore_cache:
  + key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
  - # - restore_cache:
  - # key: bundle-v1-{{ checksum "Gemfile.lock" }}-{{ arch }}
  + - restore_cache:
  + key: node-v1-{{ checksum "package.json" }}-{{ arch }}
  - # - run: bundle install
  + - run: yarn install
  - # - save_cache:
  - # key: bundle-v1-{{ checksum "Gemfile.lock" }}-{{ arch }}
  + - save_cache:
  + key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
  + paths:
  + - ~/.cache/yarn
  +
  + - save_cache:
  + key: node-v1-{{ checksum "package.json" }}-{{ arch }}
  + paths:
  + - node_modules
  +
  + - run:
  + name: yarn test
  + command: yarn run test
  + # mkdir -p test-results/jest
  + # environment:
  + # JEST_JUNIT_OUTPUT: test-results/jest/junit.xml
  +
  + # - persist_to_workspace:
  + # root: ~/GaloyApp/mobile
  # paths:
  - # - vendor/bundle
  -
  - # - run:
  - # name: fastlane tests
  - # command: |
  - # mkdir -p test-results/fastlane
  - # bundle exec fastlane test
  - # mv fastlane/report.xml test-results/fastlane
  + # - node_modules
  +
  # - store_test_results:
  # path: test-results
  # - store_artifacts:
  # path: test-results
  + android:
  + working_directory: ~/GaloyApp/mobile/android
  + docker:
  + - image: circleci/android:api-27-node8-alpha
  + steps:
  + - checkout:
  + path: ~/GaloyApp/mobile
  +
  + - attach_workspace:
  + at: ~/GaloyApp/mobile
  +
  + - restore_cache:
  + key: bundle-v1-{{ checksum "Gemfile.lock" }}-{{ arch }}
  +
  + - run: bundle install
  +
  + - save_cache:
  + key: bundle-v1-{{ checksum "Gemfile.lock" }}-{{ arch }}
  + paths:
  + - vendor/bundle
  +
  + - run:
  + name: fastlane tests
  + command: |
  + mkdir -p test-results/fastlane
  + bundle exec fastlane test
  + mv fastlane/report.xml test-results/fastlane
  + - store_test_results:
  + path: test-results
  +
  + - store_artifacts:
  + path: test-results
  +
  ios:
  macos:
  xcode: "9.0"
  @@ -145,15 +189,17 @@ jobs:
  workflows:
  version: 2
  - node-android-ios:
  + build-and-test:
  jobs:
  - react-native
  - # - android:
  - # requires:
  - # - node
  + - android:
  + requires:
  + - react-native
  - ios:
  requires:
  - - node
  + - react-native
  + - firebase-functions
  +
  