ICode9

精准搜索请尝试: 精确搜索
  • Gitlab-CI/CD2020-07-19 12:03:15

    Gitlab-Runner自动构建服务器搭建1 这里讲到的gitlab仓库指的是https://gitlab.com/,自建gitlab仓库也基本相同。 项目的构建打包过程相对比较消耗系统性能,所以gitlab将这部分任务都交给了gitlab-runner来做,因为gitlab-runner可以部署到不同的机器上。这样在构建的时候就不会影响gi

  • Docker Gitlab CI 部署 Spring Boot 项目2020-07-16 17:31:39

    安装 Gitlab CE 和 Gitlab Runner 若有现成环境,这一步可以忽略 用 Docker-Compose 进行安装 version: '3' #1 services: gitlab: image: gitlab/gitlab-ce:latest #2 container_name: "gitlab" restart: unless-stopped privileged: true

  • 国内centos7服务下快速安装 gitlab-runner2020-06-28 18:40:33

    安装 1.添加yum源 curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash 2.安装runner yum install gitlab-ci-multi-runner 3.向GitLab-CI注册runner gitlab-ci-multi-runner register 说明: 注册需

  • 分享我在前后端分离项目中Gitlab-CI的经验2020-06-12 16:55:16

    长话短说,今天分享我为前后端分离项目搭建Gitlab CI/CD流程的一些额外经验。 Before Gitlab-ci是Gitlab提供的CI/CD特性,结合Gitlab简单友好的配置界面,能愉悦的在Gitlab界面查看管道执行流程,并自然流畅的推动敏捷开发流程。 Gitlab-CI/CD的核心是搭建Gitlab Runner、编写.gitlab-ci.

  • gitlab 的 CI/CD 初次尝试2020-06-10 18:58:19

    一、前言 ci/cd 持续集成持续交付,开发人员尝尝会遇到一些重复工作,比如一个asp.net的网站代码,写完之后要发布,然后再将发布内容移动到部署的服务器上再进行部署,就算你只改了一个页面上的一个字,也要将之前的发布部署过程重新做一遍。 CI 解决了这个重复性问题,开发人员只需git push 提

  • 往Orcal数据库中插入日期值2020-05-27 15:58:46

    //添加员工 public void add(Emp emp) throws Exception{ try { QueryRunner runner = new QueryRunner(JdbcUtil.getDataSource()); /* * 你获取的应该是String格式,然后你转化为了util包中的date格式, 但

  • 使用jetty runner 运行war 包2020-05-18 21:08:05

    jetty-runner 也是一个不错的war 包运行工具,基于jetty,同时提供了丰富的cli 支持 cli java -jar jetty-runner.jar --help 2020-05-18 20:46:56.487:INFO::main: Logging initialized @300ms to org.eclipse.jetty.util.log.StdErrLog WARNING: jetty-runner is depreca

  • 基于 Gitlab 从零开始搭建自己的持续集成流水线(Pipeline)2020-05-09 18:05:41

      一、gitlab 实现的 auto devops 1. DevOps 中的一些概念与原则 持续集成(Continuous integration,简称CI)指的是,频繁地(一天多次)将代码集成到主干。 它的好处主要有两个。 快速发现错误。每完成一点更新,就集成到主干,可以快速发现错误,定位错误也比较容易。 防止分支大幅偏离主

  • moco 响应信息从 外部文件读取demo2020-04-07 11:58:13

    package mocker;import java.io.IOException;import java.nio.charset.Charset; import org.apache.http.client.ClientProtocolException;import org.apache.http.client.fluent.Content;import org.apache.http.client.fluent.Request;import org.testng.annotations.After

  • web自动化之 discover收集用例2020-04-05 23:55:28

    from unittest import defaultTestLoaderfrom common import contantsfrom common import HTMLTestRunnerdiscover = defaultTestLoader.discover(contants.case_dir, pattern='test*.py')with open(contants.html_file, 'wb')as fp: runner = HTMLTes

  • docker运行gitlab runner且指定shell executor后使用scp ssh完成一个静态网站的ci 过程记录2020-04-01 22:02:01

    所谓executor就是执行者的意思,即gitlab-runner执行任务时候的具体承载媒介,我们的gitlab上可能会有很多项目,不同项目会使用不同语言开发,不可能把构建所有项目用到的环境都配置在gitlab-runner运行的机器之上,所以才会有executor。 gitlab-runner executor的类型以及每种类型的适用

  • Python接口自动化之执行测试用例的几种方法2020-03-27 10:04:49

    方法一: # 创建测试运行程序 runner = unittest.TextTestRunner() runner.run(suite) 方法二: # 使用BeautifulReport来执行测试套件中的用例,并生成报告 from BeautifulReport import BeautifulReport br = BeautifulReport(suite) br.report("第一份测试报告","brreport.ht

  • Problem A. Missing Runners2020-03-15 21:09:54

    2018 Fall Waterloo ACM Local Contest Waterloo, Canada, September 30, 2018 Problem A. Missing Runners You are organizing a marathon with N runners. Every runner is given a distinct number from 1 to N, so they can be easily identified. You record the n

  • google浏览器Chrome小恐龙2020-03-07 09:54:48

    网上看到给小恐龙修改脚本后无敌的画面于是自己也试了一下   代码如下:     var dino= Runner.prototype dino.gameOver=()=>{} Runner.instance_.setSpeed(99)  

  • 【Git管理篇】GitLab Runner 安装及常用命令(三)2020-03-05 12:03:08

    安装系统: CentOS 7 安装软件: GitLab Runner   1、 准备工作   # 下载安装包   sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64   #  设置权限   sudo chmod

  • Postman接口测试工具使用Runner工具压测2020-03-02 09:06:26

    下载地址:https://www.postman.com/downloads/ 平台版本:https://www.postman.com/downloads/canary 国外平台下载比较慢,可以从百度云盘上下载: 链接:https://pan.baidu.com/s/13x36DroEZhjYQisErHYGVg 提取码:us3s HTTP请求类型 Runner循环压测 这里简单的添加请求接口方法就不写

  • python单元测试之unittest框架2020-02-22 14:57:07

    python单元测试之unittest框架 一、什么是单元测试 单元测试是用来对一个模块、一个函数或者一个类来进行正确性检验的测试工作。 比如对于函数abs(),我们可以编写的测试用例为: (1)输入正数,比如1、1.2、0.99,期待返回值与输入相同 (2)输入复数,比如-1、-1.2、-0.99,期待返回值与输入相反 (3

  • VS_code2020-02-21 14:01:02

    vs_code使用记录 安装扩展包: 1:ctrl+shift+x 2:搜索---比如中文汉化Chinese 3:点击安装 打开终端:---自动cd到当前文件的工作目录下 ctrl + 反引号 ----->感叹号左边的键 code Runner--扩展包 1:去安装code Runner扩展包 2:界面会出现 运行的按钮 3:手动选择解释器: -1:点击左

  • Fatal error: Uncaught Error: Call to undefined function mysql_connect()问题解决2020-02-03 19:44:28

    在使用PHP验证性代码连接数据库时,浏览器出现:Fatal error: Uncaught Error: Call to undefined function mysql_connect()错误提示。经查阅资料发现是因为使用的PHP版本不支持旧版本连接语句写法。本次使用的PHP版本是php-7.4.2-nts-Win32-vc15-x64,验证性代码为: <?php      

  • VS Code插件 Code Runner 运行 java 时输入乱码问题2020-01-26 21:43:38

    最近,在用vs code学习 java 时,code runner 运行时又遇到了输出乱码问题,网上很多的解决方法都是配置以下文件: 文件-首选项-设置,打开settings.json, 添加如下配置: 在编译文本时候指定编码: cd $dir && javac -encoding utf8 $fileName && java $fileNameWithoutExt 如果依旧

  • unittest(2)-加载用例的3种方式2020-01-23 17:55:37

    # 导入测试类执行测试用例 import unittest from day_20191202.class_unittest import TestMathMethod, TestMulti # from day_20191202 import class_unittest # 为了运行模块中多个测试类 import HTMLTestRunner # ------------------------------ # 方法1 只执行部分用例 #

  • QLExpress规则引擎实例2020-01-17 12:09:16

    what is QLExpress QLExpress是阿里开源的一个规则引擎,对java支持良好,具体描述及用法直接移步github:https://github.com/alibaba/QLExpress just do it! github中对基本用法已经描述很清楚,此处不再赘述,我们直接通过一个入门案例来帮忙理解, fisrt 我们先来看一段java伪代码 i

  • 谷歌小恐龙修改2020-01-16 19:02:07

    谷歌小恐龙修改 网址栏输入chrome:\\dino,回车进入小恐龙界面。 F12​打开控制台,在Console下输入命令,回车执行。 以下有三条修改命令: 1.修改障碍物 (1)改为true,障碍物消失 Runner.instance_.playingIntro = true; (2)改为false,障碍物恢复 Runner.instance_.playingIntro =

  • vs code控制台输出乱码2020-01-14 19:53:10

    先上一张图,不满足的可以出门左拐,省得浪费您宝贵的时间:   这是用的code-runner跑出来的代码,需要用到code-runner插件 解决: 打开settings.json文件, 插入这一条 1 "code-runner.runInTerminal": false, // 不在终端中运行 再用你的code-runner启动代码,你就会发现 输出没有在终

  • gitlab-runner集成2020-01-11 09:42:54

    1 gitlab-runner 安装 1.1 下载执行文件 # Linux x86-64 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 # Linux x86 sudo wget -O /usr/local/bin/gitlab-runner https://gitla

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有