Marlin_Firmware/.travis.yml

53 lines
1.2 KiB
YAML
Raw Normal View History

dist: trusty
sudo: false
language: python
python:
- "2.7"
notifications:
email: false
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo: false
2017-09-06 06:28:32 -05:00
cache:
pip: true
directories:
- "~/.platformio"
env:
- TEST_PLATFORM="megaatmega2560"
- TEST_PLATFORM="LPC1768"
- TEST_PLATFORM="DUE"
- TEST_PLATFORM="STM32F1"
- TEST_PLATFORM="teensy35"
before_install:
2016-05-09 19:45:42 -05:00
#
# Fetch the tag information for the current branch
- git fetch origin --tags
2016-05-09 19:45:42 -05: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}
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/share/tests/*
- export PATH=${TRAVIS_BUILD_DIR}/buildroot/share/tests/:${PATH}
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
before_script:
# Update PlatformIO packages
- platformio update
2016-05-09 19:45:42 -05:00
#
# Change current working directory to the build dir
- cd ${TRAVIS_BUILD_DIR}
#
# Generate custom version include
- 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
#
script:
- start_tests ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}