Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Непрерывная интеграция с помощью Travis CI

239 views

Published on

Доклад Артема Соковца на SQA Days-22. 17-18 ноября 2017. Санкт-Петербург, Россия
www.sqadays.com

Published in: Education
  • Be the first to comment

  • Be the first to like this

Непрерывная интеграция с помощью Travis CI

  1. 1. TRAVIS - CI, CDL, CDP 1
  2. 2. 3 Артем Соковец Руководитель направления Research and Development AVSokovets.SBT@sberbank.ru https://github.com/artsok
  3. 3. СОДЕРЖАНИЕ 4 o Continuous Integration/CDL/CDP o Travis CI o Travis Types o Supported Languages o Getting Started o Build Lifecycle o Configuration File o Build Status o Build History o Third-Party Integration o Examples o More CI Services o QA
  4. 4. CI/CDL/CDP 5
  5. 5. TRAVIS CI 6 Travis CI — распределённый веб-сервис для сборки тестирования программного обеспечения, использующий GitHub в качестве хостинга исходного кода.
  6. 6. TRAVIS CI 7
  7. 7. TURN ON 8
  8. 8. TRAVIS TYPES 9 Travis-ci.org Travis-ci.com open-source projects closed-source projects
  9. 9. SUPPORTED LANGUAGES 10 Programming Languages: goo.gl/RhzBjy
  10. 10. VIRTUALIZATION ENVIRONMENTS 11
  11. 11. BUILD LIFECYCLE 12 apt addons cache components before install install install: install any dependencies required before script script before cache after success/after failure script: run the build script before deploy deploy after deploy after script deploy: load to server
  12. 12. CONFIGURATION FILE 13 Определяем язык и версию Определяем переменные окружения Подключаем интеграцию с Sauce Labs Определяем СУБД Запуск pre-steps Запуск основного скрипта Определяем ветку source Определяем провайдера и api_tokens для авторизации
  13. 13. BUILD STATUS 14
  14. 14. BUILD HISTORY 15 Integrate badge to GitHub project
  15. 15. Configuring Notifications Showing Build Status Images Code Climate Coveralls Coverity Scan BrowserStack Sauce Labs SonarCloud SourceClear Atom Feeds CCMenu / CCTray Feeds Embedded Builds with PlatformIO THIRD-PARTY INTEGRATION 16
  16. 16. EXAMPLES: SELENIUM TEST 17 language: java sudo: false dist: trusty addons: firefox: latest apt: packages: - google-chrome-stable before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start & - sleep 3 script: - mvn test
  17. 17. EXAMPLES: JDI 18 language: java jdk: - oraclejdk8 sudo: false script: - mvn clean -f ./Java/pom.xml - mvn compile -f ./Java/pom.xml notifications: email: false addons: apt: packages: - oracle-java8-installer
  18. 18. EXAMPLES: DEPLOY TO MAVEN CENTRAL 19 language: java sudo: false dist: trusty addons: sonarcloud: organization: "artsok-github" token: secure: $SONAR_TOKEN cache: directories: - '$HOME/.m2/repository' jdk: - oraclejdk8 script: - mvn test sonar:sonar deploy: - provider: script script: ".travis/deploy.sh" on: repo: artsok/rerunner-jupiter branch: master - provider: script script: ".travis/deploy.sh" skip_cleanup: true on: repo: artsok/rerunner-jupiter tags: true
  19. 19. MORE CI SERVICES 20
  20. 20. QA 21 Артем Соковец AVSokovets.SBT@sberbank.ru github.com/artsok/travic-test https://goo.gl/02JHuy http://goo.gl/UUSytn github.com/sbtqa

×