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.
 
 
 
 
 
 

110 lines
2.6 KiB

  1. jobs:
  2. include:
  3. - stage: test
  4. language: python
  5. name: "Test CLI"
  6. python:
  7. - "3.4"
  8. before_install:
  9. - cd cli
  10. install:
  11. - pip install -r requirements.txt -r test-requirements.txt
  12. script:
  13. - export PYTHONPATH='.'
  14. - python -m unittest discover
  15. - stage: test
  16. language: python
  17. name: "Test backend"
  18. python:
  19. - "3.4"
  20. before_install:
  21. - cd containers/backend
  22. install:
  23. - pip install -r requirements.txt
  24. script:
  25. - python manage.py test
  26. - stage: test
  27. language: node_js
  28. name: "Test JavaScript packages"
  29. node_js:
  30. - "lts/*"
  31. addons:
  32. chrome: stable
  33. cache:
  34. yarn: true
  35. before_install:
  36. - curl -o- -L https://yarnpkg.com/install.sh | bash
  37. - export PATH=$HOME/.yarn/bin:$PATH
  38. install:
  39. - yarn install
  40. script:
  41. - yarn test
  42. - stage: test
  43. language: node_js
  44. name: "Test mobile app"
  45. node_js:
  46. - "lts/*"
  47. cache:
  48. yarn: true
  49. before_install:
  50. - curl -o- -L https://yarnpkg.com/install.sh | bash
  51. - export PATH=$HOME/.yarn/bin:$PATH
  52. - cd mobile
  53. install:
  54. - yarn install
  55. script:
  56. - yarn test
  57. - stage: test
  58. language: generic
  59. name: "Test containers"
  60. services:
  61. - docker
  62. before_script:
  63. - cd containers
  64. script:
  65. - ./test.sh
  66. - stage: deploy
  67. name: "Deploy containers"
  68. language: generic
  69. dist: xenial
  70. sudo: required
  71. before_script:
  72. - sudo add-apt-repository -y ppa:projectatomic/ppa
  73. - sudo apt-get update -y
  74. - sudo apt-get install -y podman
  75. - sudo mkdir -p /etc/containers
  76. - sudo curl https://raw.githubusercontent.com/projectatomic/registries/master/registries.fedora -o /etc/containers/registries.conf
  77. - cd containers
  78. script:
  79. - ./deploy.sh
  80. on:
  81. tags: true
  82. all_branches: true
  83. condition: "$TRAVIS_TAG =~ ^containers-*$"
  84. - stage: deploy
  85. name: "Deploy web extensions"
  86. language: node_js
  87. node_js:
  88. - "lts/*"
  89. cache:
  90. yarn: true
  91. env:
  92. - EXTENSION_ID=lcmbpoclaodbgkbjafnkbbinogcbnjih
  93. before_install:
  94. - curl -o- -L https://yarnpkg.com/install.sh | bash
  95. - export PATH=$HOME/.yarn/bin:$PATH
  96. - cd web-extension
  97. install:
  98. - yarn install
  99. script:
  100. - yarn release
  101. on:
  102. tags: true
  103. all_branches: true
  104. condition: "$TRAVIS_TAG =~ ^web-extension-*$"