2017-08-03 08:45:11 -07:00
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
2017-08-03 05:12:31 -07:00
|
|
|
|
2017-07-19 21:34:30 +01:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
|
2016-07-19 01:45:13 +01:00
|
|
|
notifications:
|
|
|
|
email: false
|
2017-07-19 21:34:30 +01:00
|
|
|
|
|
|
|
# Cache PlatformIO packages using Travis CI container-based infrastructure
|
|
|
|
sudo: false
|
2017-09-06 06:28:32 -05:00
|
|
|
cache:
|
2017-07-19 21:34:30 +01:00
|
|
|
pip: true
|
|
|
|
directories:
|
|
|
|
- "~/.platformio"
|
|
|
|
|
|
|
|
env:
|
2018-07-14 05:42:15 +01:00
|
|
|
- TEST_PLATFORM="megaatmega2560"
|
|
|
|
- TEST_PLATFORM="DUE"
|
2018-10-08 23:03:53 -05:00
|
|
|
- TEST_PLATFORM="LPC1768"
|
2018-07-14 05:42:15 +01:00
|
|
|
- TEST_PLATFORM="STM32F1"
|
|
|
|
- TEST_PLATFORM="teensy35"
|
2017-07-19 21:34:30 +01:00
|
|
|
|
2015-01-03 11:43:40 +00:00
|
|
|
before_install:
|
2016-05-10 01:45:42 +01:00
|
|
|
#
|
2016-05-20 02:30:03 +01:00
|
|
|
# Fetch the tag information for the current branch
|
2015-06-08 07:44:49 -05:00
|
|
|
- git fetch origin --tags
|
2016-05-10 01:45:42 +01:00
|
|
|
#
|
|
|
|
# Publish the buildroot script folder
|
|
|
|
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
|
2017-09-06 06:28:32 -05:00
|
|
|
- export PATH=${TRAVIS_BUILD_DIR}/buildroot/bin/:${PATH}
|
2018-07-14 05:42:15 +01:00
|
|
|
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/share/tests/*
|
|
|
|
- export PATH=${TRAVIS_BUILD_DIR}/buildroot/share/tests/:${PATH}
|
2017-07-11 21:59:27 +01:00
|
|
|
|
2017-07-19 21:34:30 +01:00
|
|
|
install:
|
2018-01-10 05:01:00 -06:00
|
|
|
#- pip install -U platformio
|
|
|
|
- pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
|
2017-07-11 21:59:27 +01:00
|
|
|
|
2015-01-03 11:43:40 +00:00
|
|
|
before_script:
|
2018-01-10 02:32:22 +02:00
|
|
|
# Update PlatformIO packages
|
|
|
|
- platformio update
|
2016-05-10 01:45:42 +01:00
|
|
|
#
|
|
|
|
# Change current working directory to the build dir
|
|
|
|
- cd ${TRAVIS_BUILD_DIR}
|
2016-03-31 21:01:55 -07:00
|
|
|
#
|
2016-05-20 02:30:03 +01:00
|
|
|
# Generate custom version include
|
2018-09-02 03:27:39 -05:00
|
|
|
- generate_version ${TRAVIS_BUILD_DIR}/Marlin/src/inc
|
2017-09-06 06:28:32 -05:00
|
|
|
- cat ${TRAVIS_BUILD_DIR}/Marlin/src/inc/_Version.h
|
2016-05-20 02:30:03 +01:00
|
|
|
#
|
2015-01-03 11:43:40 +00:00
|
|
|
script:
|
2018-10-08 23:03:53 -05:00
|
|
|
- run_tests ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
|