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.

.travis.yml 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. dist: trusty
  2. sudo: false
  3. language: python
  4. python:
  5. - "2.7"
  6. notifications:
  7. email: false
  8. # Cache PlatformIO packages using Travis CI container-based infrastructure
  9. sudo: false
  10. cache:
  11. pip: true
  12. directories:
  13. - "~/.platformio"
  14. env:
  15. - TEST_PLATFORM="megaatmega2560"
  16. - TEST_PLATFORM="LPC1768"
  17. - TEST_PLATFORM="DUE"
  18. - TEST_PLATFORM="STM32F1"
  19. - TEST_PLATFORM="teensy35"
  20. before_install:
  21. #
  22. # Fetch the tag information for the current branch
  23. - git fetch origin --tags
  24. #
  25. # Publish the buildroot script folder
  26. - chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
  27. - export PATH=${TRAVIS_BUILD_DIR}/buildroot/bin/:${PATH}
  28. - chmod +x ${TRAVIS_BUILD_DIR}/buildroot/share/tests/*
  29. - export PATH=${TRAVIS_BUILD_DIR}/buildroot/share/tests/:${PATH}
  30. install:
  31. #- pip install -U platformio
  32. - pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
  33. before_script:
  34. # Update PlatformIO packages
  35. - platformio update
  36. #
  37. # Change current working directory to the build dir
  38. - cd ${TRAVIS_BUILD_DIR}
  39. #
  40. # Generate custom version include
  41. - generate_version_header_for_marlin ${TRAVIS_BUILD_DIR}/Marlin/src/inc
  42. - cat ${TRAVIS_BUILD_DIR}/Marlin/src/inc/_Version.h
  43. #
  44. script:
  45. - start_tests ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}