瀏覽代碼

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
Dave Johnson 7 年之前
父節點
當前提交
65a36948c0
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      .travis.yml

+ 3
- 2
.travis.yml 查看文件

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

Loading…
取消
儲存