def test_jenkins_local(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        js = JenkinsExt('http://machine:8080/', "user", "password", mock=True)

        if sys.platform.startswith("win"):
            res = setup_jenkins_server(js,
                                       anaconda=r"C:\\Anaconda3",
                                       anaconda2=r"C:\\Anaconda2",
                                       winpython=r"C:\\WinPython-64bit-3.4.2.3\\python-3.4.2.amd64",
                                       fLOG=fLOG,
                                       overwrite=True,
                                       location=r"c:\\jenkins\\pymy",
                                       prefix="_node_")
        else:
            modules = [("pyquickhelper", "H H(10-11) * * 0"),
                       ["pymyinstall"],
                       ["pymyinstall [anaconda] [update]",
                           "pymyinstall [anaconda2] [update27]"],
                       ["pyquickhelper [anaconda]",
                        "pyquickhelper [27] [anaconda2]"],
                       ["pyensae", ],
                       ["pymmails", "pysqllike", "pyrsslocal", "pymyinstall [27] [anaconda2]",
                        "python3_module_template", "pyensae [anaconda]", ],
                       ["pymmails [anaconda]", "pysqllike [anaconda]", "pyrsslocal [anaconda]",
                        "python3_module_template [anaconda]", "python3_module_template [27] [anaconda2]",
                        "pymyinstall [all]"],
                       # actuariat
                       [("actuariat_python", "H H(12-13) * * 0")],
                       ["actuariat_python [anaconda]"],
                       # code_beatrix
                       [("code_beatrix", "H H(14-15) * * 0")],
                       ["code_beatrix [anaconda]"],
                       # teachings
                       ("ensae_teaching_cs", "H H(15-16) * * 0"),
                       ["ensae_teaching_cs [anaconda]"],
                       ["ensae_teaching_cs [notebooks]"],
                       ["ensae_teaching_cs [anaconda] [notebooks]", ],
                       ]

            res = setup_jenkins_server(js,
                                       anaconda=r"C:\\Anaconda3",
                                       anaconda2=r"C:\\Anaconda2",
                                       winpython=None,
                                       modules=modules,
                                       fLOG=fLOG,
                                       overwrite=True,
                                       location=r"c:\\jenkins\\pymy",
                                       prefix="_node_")
        assert len(res) > 0
示例#2
0
    def test_jenkins_local(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        engines = dict(anaconda2="C:\\Anaconda2", anaconda3="C:\\Anaconda3",
                       winpython="C:\\WinPython-64bit-3.4.2.3\\python-3.4.2.amd64",
                       default="c:\\PythonXX_x64", py27="c:\\Python27", py35="c:\\Python35_x64",
                       py36="c:\\Python36_x64", Python34="py34", Python35="py35",
                       Python36="py36", Anaconda3="apy35", Anaconda2="apy27",
                       Python27="py27", WinPython35="wpy35", WinPython36="wpy36",
                       Python35pyq="DDD", Python37="py37")
        vers = "%d%d" % sys.version_info[:2]
        engines["Python" + vers] = "py" + vers

        js = JenkinsExt('http://machine:8080/', "user",
                        "password", mock=True, engines=engines, fLOG=fLOG)

        if sys.platform.startswith("win"):
            res = setup_jenkins_server(js,
                                       overwrite=True,
                                       location=r"c:\\jenkins\\pymy",
                                       prefix="_node_")
            self.assertGreater(len(res), 0)

            job = "pyrsslocal [py35] <-- pyquickhelper, pyensae"
            cmd = "\n".join(js.get_jenkins_script(job))
            if "PythonXX" in cmd:
                raise Exception(cmd)
    def test_jenkins_local(self):
        fLOG(__file__, self._testMethodName, OutputPrint=__name__ == "__main__")

        engines = dict(
            anaconda2="C:\\Anaconda2",
            anaconda3="C:\\Anaconda3",
            winpython="C:\\WinPython-64bit-3.4.2.3\\python-3.4.2.amd64",
            default="c:\\PythonXX_x64",
            py27="c:\\Python27",
            py35="c:\\Python35_x64",
            py36="c:\\Python36_x64",
            Python34="py34",
            Python35="py35",
            Python36="py36",
            Anaconda3="apy35",
            Anaconda2="apy27",
            Python27="py27",
            WinPython35="wpy35",
            Python35pyq="DDD",
        )

        js = JenkinsExt("http://machine:8080/", "user", "password", mock=True, engines=engines, fLOG=fLOG)

        if sys.platform.startswith("win"):
            res = setup_jenkins_server(js, overwrite=True, location=r"c:\\jenkins\\pymy", prefix="_node_")
            assert len(res) > 0

            job = "pyrsslocal [py35] <-- pyquickhelper, pyensae"
            cmd = "\n".join(js.get_jenkins_script(job))
            if "PythonXX" in cmd:
                raise Exception(cmd)
    def test_jenkins_local(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        engines = dict(anaconda2="C:\\Anaconda2", anaconda3="C:\\Anaconda3",
                       winpython="C:\\WinPython-64bit-3.4.2.3\\python-3.4.2.amd64",
                       default="c:\\Python34_x64")

        js = JenkinsExt('http://machine:8080/', "user",
                        "password", mock=True, engines=engines, fLOG=fLOG)

        if sys.platform.startswith("win"):
            res = setup_jenkins_server(js,
                                       overwrite=True,
                                       location=r"c:\\jenkins\\pymy",
                                       prefix="_node_")
            assert len(res) > 0
示例#5
0
    def test_jenkins_local(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        engines = dict(
            anaconda2="C:\\Anaconda2",
            anaconda3="C:\\Anaconda3",
            winpython="C:\\WinPython-64bit-3.4.2.3\\python-3.4.2.amd64",
            default="c:\\Python34_x64")

        js = JenkinsExt('http://machine:8080/',
                        "user",
                        "password",
                        mock=True,
                        engines=engines,
                        fLOG=fLOG)

        if sys.platform.startswith("win"):
            res = setup_jenkins_server(js,
                                       overwrite=True,
                                       location=r"c:\\jenkins\\pymy",
                                       prefix="_node_")
            assert len(res) > 0