GithubHelp home page GithubHelp logo

hsxyhao / travis-ci Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27 KB

travis ci结合github搭建一个简单的持续集成以及自动部署项目,该项目可以直接使用git push,然后就会自动更新服务器上的版本,并且启动tomcat服务

Java 100.00%

travis-ci's Introduction

travis-ci

travis ci持续集成服务,用来构建及测试在GitHub托管的代码,官方文档。 该项目演示一个简单的持续集成案例,总结在开发过程中踩过的坑以及个人心得。

Build Status

步骤

  1. 登录travis ci,同步GitHub仓库
  2. linux服务器安装travis客户端
  3. 在服务器上git pull自己的项目,然后travis login
  4. 编写travis脚本

坑:

  1. ssh登录执行脚本的出现Command not found问题,可以参考该博客,内容比较多也比较复杂 ,我是在脚本文件的第一行修改为:#!/bin/bash --login
  2. 安装travis客户端时,需要还需要安装其依赖环境
  3. 在使用travis客户端登录完项目之后,一定要将解码文件id_rsa.enc上传至github上,travis ci使用ssh免密登录时要使用

详细过程都是参考几篇博客的

参考链接:

  1. Travis CI 系列:自动化部署博客
  2. 利用travis-ci持续部署nodejs应用
  3. ssh连接远程主机执行脚本的环境变量问题

travis-ci's People

Contributors

hsxyhao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.