Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/narkisr/self-build
- Owner: narkisr
- Created: 2014-02-26T23:15:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-10T15:08:46.000Z (almost 8 years ago)
- Last Synced: 2024-11-28T23:15:58.068Z (27 days ago)
- Language: Clojure
- Homepage:
- Size: 29.3 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-2.0.txt
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 licenseCopyright [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.