os: linux
dist: focal
language: shell
notifications:
  email:
    on_success: change
    on_failure: always
jobs:
  include:
    - language: shell
      name: "Noetic Robot Setup Script"
      cache:
        directories:
          - ~/.npm
          - ~/.cache
      script:
        - ${TRAVIS_BUILD_DIR}/setup-noetic.sh

    - language: node_js
      name: "Node Script Test and Code Coverage"
      node_js: "lts/*"
      cache:
        directories:
          - ~/.npm
          - ~/.cache
      before_install:
        - mkdir -p ~/.arlobot/rosmaps ~/catkin_ws/src ~/.arlobot/status
        - touch ~/.arlobot/rosmaps/dummymap.data ~/.arlobot/rosmaps/dummymap.posegraph
        - cp scripts/dotarlobot/personalDataForBehavior.json ~/.arlobot/
        - ln -s ${TRAVIS_BUILD_DIR} ~/catkin_ws/src/ArloBot
        - cd node
      install:
        - npm install -g jest codecov
      script:
        - npm ci
        - jest --forceExit
        - codecov --disable=gcov

    - language: node_js
      name: "React Website"
      node_js: "lts/*"
      cache:
        directories:
          - ~/.npm
          - ~/.cache
      before_install:
        - cd website
      script:
        - npm test
        - npm run build

os: linux
dist: focal
language: shell
notifications:
  email:
    on_success: change
    on_failure: always
jobs:
  include:
    - language: shell
      name: "Noetic Robot Setup Script"
      cache:
        directories:
          - ~/.npm
          - ~/.cache
      script:
        - ${TRAVIS_BUILD_DIR}/setup-noetic.sh

    - language: node_js
      name: "Node Script Test and Code Coverage"
      node_js: "lts/*"
      cache:
        directories:
          - ~/.npm
          - ~/.cache
      before_install:
        - mkdir -p ~/.arlobot/rosmaps ~/catkin_ws/src ~/.arlobot/status
        - touch ~/.arlobot/rosmaps/dummymap.data ~/.arlobot/rosmaps/dummymap.posegraph
        - cp scripts/dotarlobot/personalDataForBehavior.json ~/.arlobot/
        - ln -s ${TRAVIS_BUILD_DIR} ~/catkin_ws/src/ArloBot
        - cd node
      install:
        - npm install -g jest codecov
      script:
        - npm ci
        - jest --forceExit
        - codecov --disable=gcov

    - language: node_js
      name: "React Website"
      node_js: "lts/*"
      cache:
        directories:
          - ~/.npm
          - ~/.cache
      before_install:
        - cd website
      script:
        - npm run build

Fix react CI Test build
Fix react CI Test build

Remove `npm test` as it doesn't work. I have no idea why, but I don't really know what it did anyway as I have no tests configured.
