Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/narkisr/self-build

self contained build server
https://github.com/narkisr/self-build

Last synced: 12 days ago
JSON representation

self contained build server

Awesome Lists containing this project

README

        

# Intro

self-build is a simple build server currently focused on simplicity and easy setup, its main goal is to enable a continues build by just running:

```bash
$ lein self-build jobs.edn
```

Right from within a lein project thus saving us from the need to setup Jenkins or other more complex solutions.

self-build will support only Git as SCM.

# Usage

Add to your project file under plugins section:

[![Clojars Project](http://clojars.org/self-build/latest-version.svg)](http://clojars.org/self-build)

Define jobs edn file:

```clojure
{
:jobs [
{:name "play"
:repo "[email protected]:narkisr/play.git"
:target "/tmp/play"
:steps [{:cmd "foo" :args ["help"]}]
:poll 3000
}

{:name "celestial"
:clear-merge-fail true
:repo "[email protected]:celestial-ops/celestial-core.git"
:branch "es"
:target "/tmp/celestial"
:steps [{:cmd "lein" :args ["runtest"] :timeout 180}]
:poll 3000
}
]

}
```

Now configure under either ~/.self-build.edn or /etc/self-build/self-build.edn:

```clojure
{
:ctx {
:ssh-key "/home/foo/.ssh/id_rsa"
:smtp {
:host "smtp.gmail.com"
:user "foo"
:pass ""
:ssl :yes!!!11
}
:mail {
:from "[email protected]" :to "[email protected]"
}
}
}
```

Now run builds (possibly in a tmux session):

```clojure
$ lein self-build jobs.edn
2014-Feb-28 21:06:18 +0200 nucleus INFO [self-build.core] - Setting up job play
2014-Feb-28 21:06:18 +0200 nucleus INFO [self-build.core] - Cloned [email protected]:narkisr/play.git
2014-Feb-28 21:06:25 +0200 nucleus INFO [self-build.core] - Starting to build play
```
# Copyright and license

Copyright [2013] [Ronen Narkis]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.