Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

.travis.yml 2.1 KiB

5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
5 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-*$"