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