Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

.travis.yml 2.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. if: tag IS present
  68. name: Deploy cli
  69. before_deploy: cd cli
  70. deploy:
  71. provider: pypi
  72. user: guillaumevincent
  73. password:
  74. secure: AOCdqmMdtzmxZXnnMM4ToA80y1PftTVoPsFi7D9RglfneRruRocfI+HQ1Y2m3wUkdGEKVrzkHudiOVMLpeuiMerz9JzQNX/MoujjTvq0h24pnXC+Y2JLNgqxQNuKttgBYP9yMhdgo0Si25KqRLTbmGNZLVnN1hXKV206alNmRWqsZeI/Yxje2FDgRnVTsAtXM+R2g/SvM5r/zVnFiogT/gbQ1Voz+kUo7c15o3Sp3D9+WL38P9Sk3tIVl7RA8o1yd7actDVezPhQPddSu+o+3poxUfrX9LtnibJiuWvqBRdQ2Pjwc7ZSjNJ/zPXntCu8hvdEVzCAXbVFfkhsk1xEDGrEne1hyRJuRX3F9o+SgkuKz53mSg1Wxw7tK6fmnyNG+EMU+oeIKGzNd4Ta/Dk9MzmrymeQgFsZSSFIlwi0ecJ7N+3f0UYTlMR788Q7JGXLsqHfY473rI1M5cpC24l88Pibsdjzf66sanlsZtzHN/51CZzuLLHwTt714CV2bVsffdp3UqaJ+pbhdLXYtrLColOg5Ua3el+t999pVr0r/V/gSqRKKVZqgbUwd9ajYTqYXDDt0+/+9c7ynhfH4hMLsafAZNhf74KBIbL7C30A/DfptiHlBP/5TWvOpzc+AyxWt8v1nnrEK/1vAGLGAaYkXKqmazb/9KlxkKDqDMC9ZQc=
  75. on:
  76. tags: true
  77. all_branches: true
  78. condition: "$TRAVIS_TAG =~ ^cli*$"