| 1 | version: 2 |
| 2 | jobs: |
| 3 | build: |
| 4 | docker: |
| 5 | - image: trzeci/emscripten |
| 6 | |
| 7 | working_directory: ~/repo |
| 8 | |
| 9 | steps: |
| 10 | - checkout |
| 11 | - run: |
| 12 | name: Native Compile |
| 13 | command: make |
| 14 | - run: |
| 15 | name: Native Tests |
| 16 | command: make test |
| 17 | - run: |
| 18 | name: JS Compile |
| 19 | command: make js |
| 20 | - run: |
| 21 | name: Install JS Deps |
| 22 | working_directory: ~/repo/javascript |
| 23 | command: npm install |
| 24 | - run: |
| 25 | name: JS Tests |
| 26 | working_directory: ~/repo/javascript |
| 27 | command: npm run test |