|
| 1 | +version: 2 |
| 2 | + |
| 3 | +jobs: |
| 4 | + build: |
| 5 | + working_directory: ~/jsc-android-buildscripts |
| 6 | + docker: |
| 7 | + - image: gengjiawen/jsc-android-buildscripts |
| 8 | + steps: |
| 9 | + - checkout |
| 10 | + - restore_cache: |
| 11 | + keys: |
| 12 | + - v1-dependencies-{{ checksum "package.json" }} |
| 13 | + # fallback to using the latest cache if no exact match is found |
| 14 | + - v1-dependencies- |
| 15 | + - run: npm install |
| 16 | + - save_cache: |
| 17 | + paths: |
| 18 | + - node_modules |
| 19 | + key: v1-dependencies-{{ checksum "package.json" }} |
| 20 | + - run: npm run download |
| 21 | + - run: npm run prep |
| 22 | + - run: npm run start |
| 23 | + - run: |
| 24 | + name: Build Android |
| 25 | + command: | |
| 26 | + cd measure |
| 27 | + npm install |
| 28 | + cd android && ./gradlew assembleRelease |
| 29 | + |
| 30 | +workflows: |
| 31 | + version: 2 |
| 32 | + build_and_test: |
| 33 | + jobs: |
| 34 | + - build |
0 commit comments