Metis portal provides a user-friendly frontend for the Metis API which is written in Vue.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

4 years ago
4 years ago
4 years ago
  1. language: node_js
  2. node_js:
  3. - "8.6.0"
  4. - "node"
  5. env:
  6. - WEBPACK_VERSION= # Current, from package.json
  7. - WEBPACK_VERSION=4
  8. install:
  9. # Use npm 5.7.x since it has introduced `npm ci`
  10. - if [[ `npm -v` != 5.7* ]]; then npm install -g npm@'>=5.7.1'; fi
  11. - npm ci
  12. before_script:
  13. - if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; fi
  14. stages:
  15. - lint
  16. - test
  17. - build
  18. jobs:
  19. include:
  20. - stage: lint
  21. script:
  22. # Run linter
  23. - npm run lint
  24. - stage: test
  25. script:
  26. # Run tests
  27. - npm run test
  28. - stage: build
  29. script:
  30. # Build all
  31. - npm run build
  32. branches:
  33. only:
  34. - production
  35. deploy:
  36. provider: heroku
  37. app: metis-portal
  38. on:
  39. branch: production
  40. api_key:
  41. secure: SKDXgS2xwEoZQYtLSsRKiIhnZm0blAQA9UIBpRPB/cQVv3Js9bU9kiJFuOZG3KHFkZIb/j/O12ZvELOJBss6VzrkFSrVk7Jx1ClEFOG7fQoWe9uQHS1Q0ZCTXtdhdBzclooVEeWfFaImV6PT+LTzK1tj326u8Ae5mmM9+BKBiCZmq55MJP84npAb/e3fQ5ZyI1iWses73jInw/6g7tdQ97Lo5LiiKInYJGq/cKrfuAYCtULJxBs5UbE3XUadrkQbMQdQMufp3kMAqMOM7E1Yj9pVL/iuzDYGC9zejiZnKGP4ibK4nlcRP247SSlV6hkrPnZTek7RF60eS93pJWcspA0oeCC1YhSMZbErYL68f0cA04AHfFDnV+L6GEmpZCwWWhR4dorXYdJyIBXi8PbDASUBZpNMe6teNae1gSIDbZrLz1DyDzrDumkc2P8vsMPdqFWRp+/01/J5mYvurTR3TsF9XIKtipkDnoeFY3X6RTtuZPk269+g1Qx+jGJqKT7FrPm1DSHt7nkRmOi9DOdDS7ddd+EgSvuoNqavvWOl1r0bI4JvgmrZEMZJyTNrVtGdrf/5mithj9rn7AUaY/vQ194QkVyvQo/MPMsUBktgAJfUcWo5z1oTryswNf4hkAcdjQbDRxylkvDKZFD4ZH6JNav4OjXwGqqQxSmyg4u3T5M=