Travis-CI - 向sbt命令添加另一个任务

时间:2015-06-14 10:45:55

标签: scala sbt travis-ci

我看了this

  

默认情况下,Travis CI将使用

     

sbt ++$TRAVIS_SCALA_VERSION test

     

运行测试套件。这可以按照general build configuration指南中的描述进行覆盖。

但是这个链接给出了我不理解的千字节和千字节文本。

用两句话说;如何让Travis CI使用以下代码:

sbt ++$TRAVIS_SCALA_VERSION test assembly

1 个答案:

答案 0 :(得分:1)

只需将.travis.yml部分添加到language: scala scala: - 2.11.5 - 2.10.0 script: - sbt ++$TRAVIS_SCALA_VERSION test assembly ,例如

(function () {
"use strict";
angular.module("productManagement").controller("ProductListCtrl", ProductListCtrl);

function ProductListCtrl() {
    var vm = this;

    vm.products = [
    {
        "productId": 1,
        "productName": "Leaf Rake",
        "productCode": "GDN-0011",
        "releaseDate": "March 19, 2009",
        "description": "Leaf rake with 48-inch wooden handle.",
        "price": 19.95
    },
    {
        "productId": 2,
        "productName": "Garden Cart",
        "productCode": "GDN-0023",
        "releaseDate": "March 18, 2010",
        "description": "15 gallon capacity rolling garden cart",
        "price": 32.99
    },
     {
         "productId": 5,
         "productName": "Hammer",
         "productCode": "TBX-0048",
         "releaseDate": "May 21, 2013",
         "description": "Curved claw steel hammer",
         "price": 8.99
     },
     {
         "productId": 8,
         "productName": "Saw",
         "productCode": "TBX-0022",
         "releaseDate": "May 15, 2009",
         "description": "15-inch steel blade hand saw",
         "price": 11.55
     },
     {
         "productId": 10,
         "productName": "Video Game Controller",
         "productCode": "GMG-0042",
         "releaseDate": "October 15, 2002",
         "description": "Standard two-button video game controller",
         "price": 35.95
     }
    ];
  }
 }());