common/conf/jib-profiles.js
changeset 46210 244486b722ee
parent 44697 ae11efc5ed76
parent 46206 45deafa80e4f
child 46218 3850de6acd8e
equal deleted inserted replaced
44722:1407b19a2ddf 46210:244486b722ee
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   235         "linux-arm64", "linux-arm-vfp-hflt", "linux-arm-vfp-hflt-dyn"
   235         "linux-arm64", "linux-arm-vfp-hflt", "linux-arm-vfp-hflt-dyn"
   236     ];
   236     ];
   237 
   237 
   238     // These are the base setttings for all the main build profiles.
   238     // These are the base setttings for all the main build profiles.
   239     common.main_profile_base = {
   239     common.main_profile_base = {
   240         dependencies: ["boot_jdk", "gnumake", "jtreg"],
   240         dependencies: ["boot_jdk", "gnumake", "jtreg", "jib"],
   241         default_make_targets: ["product-bundles", "test-bundles"],
   241         default_make_targets: ["product-bundles", "test-bundles"],
   242         configure_args: [
   242         configure_args: [
   243             "--with-version-opt=" + common.build_id,
   243             "--with-version-opt=" + common.build_id,
   244             "--enable-jtreg-failure-handler",
   244             "--enable-jtreg-failure-handler",
   245             "--with-version-build=" + common.build_number
   245             "--with-version-build=" + common.build_number
   591     // Profiles used to run tests. Used in JPRT and Mach 5.
   591     // Profiles used to run tests. Used in JPRT and Mach 5.
   592     var testOnlyProfiles = {
   592     var testOnlyProfiles = {
   593         "run-test-jprt": {
   593         "run-test-jprt": {
   594             target_os: input.build_os,
   594             target_os: input.build_os,
   595             target_cpu: input.build_cpu,
   595             target_cpu: input.build_cpu,
   596             dependencies: [ "jtreg", "gnumake", "boot_jdk" ],
   596             dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
   597             labels: "test",
   597             labels: "test",
   598             environment: {
   598             environment: {
   599                 "JT_JAVA": common.boot_jdk_home
   599                 "JT_JAVA": common.boot_jdk_home
   600             }
   600             }
   601         },
   601         },
   602 
   602 
   603         "run-test": {
   603         "run-test": {
   604             target_os: input.build_os,
   604             target_os: input.build_os,
   605             target_cpu: input.build_cpu,
   605             target_cpu: input.build_cpu,
   606             dependencies: [ "jtreg", "gnumake", "boot_jdk" ],
   606             dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
   607             labels: "test",
   607             labels: "test",
   608             environment: {
   608             environment: {
   609                 "JT_JAVA": common.boot_jdk_home
   609                 "JT_JAVA": common.boot_jdk_home
   610             }
   610             }
   611         }
   611         }
   618         testedProfile = input.build_os + "-" + input.build_cpu;
   618         testedProfile = input.build_os + "-" + input.build_cpu;
   619     }
   619     }
   620     var testOnlyProfilesPrebuilt = {
   620     var testOnlyProfilesPrebuilt = {
   621         "run-test-prebuilt": {
   621         "run-test-prebuilt": {
   622             src: "src.conf",
   622             src: "src.conf",
   623             dependencies: [ "jtreg", "gnumake", "boot_jdk", testedProfile + ".jdk",
   623             dependencies: [ "jtreg", "gnumake", "boot_jdk", "jib", testedProfile + ".jdk",
   624                 testedProfile + ".test", "src.full"
   624                 testedProfile + ".test", "src.full"
   625             ],
   625             ],
   626             work_dir: input.get("src.full", "install_path") + "/test",
   626             work_dir: input.get("src.full", "install_path") + "/test",
   627             environment: {
   627             environment: {
   628                 "JT_JAVA": common.boot_jdk_home,
   628                 "JT_JAVA": common.boot_jdk_home,
   962         freetype: {
   962         freetype: {
   963             organization: common.organization,
   963             organization: common.organization,
   964             ext: "tar.gz",
   964             ext: "tar.gz",
   965             revision: "2.7.1-v120+1.0",
   965             revision: "2.7.1-v120+1.0",
   966             module: "freetype-" + input.target_platform
   966             module: "freetype-" + input.target_platform
   967         }
   967         },
   968     };
   968 
       
   969         // This adds java jib as a dependency for the test artifacts resolver
       
   970         jib: {
       
   971             organization: "com.oracle.java.jib",
       
   972             ext: "zip",
       
   973             classifier: "distribution",
       
   974             revision: "3.0-SNAPSHOT",
       
   975             environment_name: "JIB_JAR",
       
   976             environment_value: input.get("jib", "install_path")
       
   977                 + "/jib-3.0-SNAPSHOT-distribution/lib/jib-3.0-SNAPSHOT.jar"
       
   978        }
       
   979     };
       
   980 
       
   981     // Need to add a value for the Visual Studio tools variable to make
       
   982     // jaot be able to pick up the Visual Studio linker in testing.
       
   983     if (input.target_os == "windows") {
       
   984         dependencies.devkit.environment = {
       
   985             VS120COMNTOOLS: input.get("devkit", "install_path") + "/Common7/Tools"
       
   986         };
       
   987     }
   969 
   988 
   970     return dependencies;
   989     return dependencies;
   971 };
   990 };
   972 
   991 
   973 /**
   992 /**