Travis和矩阵组合

Ser*_*gio 26 travis-ci

我想针对许多浏览器测试我的.js框架的不同版本

我希望写下这样的东西:

language: node_js
node_js:
- 0.11
env:
  matrix:
    - BUILD='nocompat'
    - BUILD='compat'
    - BUILD='default'

    - BROWSER='ie6'
    - BROWSER='ie7'
    # etc... about total 15 browsers/platforms
Run Code Online (Sandbox Code Playgroud)

但是我使用它的唯一方法是"手动"指定所有组合......

喜欢:

env:
  matrix:
    - BROWSER='chrome_linux'    BUILD='default'
    - BROWSER='chrome_linux'    BUILD='compat'
    - BROWSER='chrome_linux'    BUILD='nocompat'
    - BROWSER='firefox'         BUILD='default'
    - BROWSER='firefox'         BUILD='compat'
    - BROWSER='firefox'         BUILD='nocompat'

    # etc ... and this is about 50 lines!
Run Code Online (Sandbox Code Playgroud)

还有另一种方法吗?或者这是正确的方法吗?

pha*_*dej 22

看起来你现在不能干:travis-ci issue#1519