Support travis new build environment (#7425)

move from legacy precise to trusty build image
fix PATH not including buildroot/bin
remove symolic link to ~/bin
enable sudo

trusty travis image doesn't source ~/bin by default
avr requires sude
This commit is contained in:
Dave Johnson 2017-08-03 08:33:53 -07:00 committed by Roxy-3D
parent c6509076c4
commit 65a36948c0

View file

@ -1,4 +1,5 @@
dist: precise dist: trusty
sudo: true
# #
language: c language: c
# #
@ -12,7 +13,7 @@ before_install:
# #
# Publish the buildroot script folder # Publish the buildroot script folder
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/* - chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
- ln -s ${TRAVIS_BUILD_DIR}/buildroot/bin/ ~/bin - export PATH=${TRAVIS_BUILD_DIR}/buildroot/bin/:${PATH}
# #
# Start fb X server # Start fb X server
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16" - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"