Giter Site home page Giter Site logo

lure's Introduction

lure

Build Status Go Report Card

Update your dependencies, with hooks, for developers.

Setup your repository

First create a lure.config in the repository you want to keep your dependencies up-to-date.

The file should look like:

    "projects": [
        {
            "vcs": "hg",
            "owner": "dreisch",
            "name": "catfeederhg",
            "defaultBranch": "default",
            "branchPrefix": "lure-",
            "commands": [
                {
                    "name": "updateDependencies"
                }
            ]
        },
        {
            "vcs": "git",
            "owner": "dreisch",
            "name": "catfeedergit",
            "defaultBranch": "master",
            "branchPrefix": "lure-",
            "commands": [
                {
                    "name": "synchronizedBranches",
                    "args": {
                        "from": "staging",
                        "to": "develop"
                    }
                }
            ]
        }
    ]
}

Possible vcs are:

  • hg for mercurial
  • git for git

The possible commands are:

  • updateDependencies
  • synchronizedBranches

Other:

  • owner: https ://bitbucket.org/owner/name
  • name: https ://bitbucket.org/owner/name

Setup your CI

eg, in jenkins:

git config --global user.email "[email protected]"
git config --global user.name "jenkins"

wget https://github.com/coveo/lure/releases/download/1.1.2/lure-linux-amd64 -O lure
chmod +x lure
./lure -auth env -config ${WORKSPACE}/lure.config

You need bitbucket api-key and api-secret, see, the bitbucket documentation for OAuth setup.

Environment variables:

  • IGNORE_DECLINED_PR=1 Will ignore declined PR when looking if the PR exists
  • BITBUCKET_CLIENT_ID the bitbucket OAuth Key previously created
  • BITBUCKET_CLIENT_SECRET the bitbucket OAuth Secret previously created
  • DRY_RUN won't create a PR

Develop

GO environment setup

if you're an old time go user you already know what to do

mkdir -p $HOME/go/

Create bitbucket APP

In your bitbucket app, set the callback url to http://localhost:9090/callback

Project setup

go get github.com/coveo/lure/
cd $GOPATH/src/github.com/coveo/lure
# or $HOME/go/src/coveo/lure if you don't have a $GOPATH set up which is perfectly fine
go get ./...
go run lure.go

Build:

go build lure.go

For more information about building, you can check the BUILD.md.

lure's People

Contributors

andycoveo avatar dreisch-coveo avatar pastjean avatar fredboutin avatar marcantoineveilleux 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.