Skip to content

Commit

Permalink
Added spec validation to TravisCI config + Fixed bug with unit files …
Browse files Browse the repository at this point in the history
…naming if count property is equal 1
  • Loading branch information
andyone committed Jun 28, 2018
1 parent 452d215 commit 2f60268
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: false
sudo: required

language: go

Expand All @@ -8,24 +8,35 @@ go:
- 1.10.x
- tip

os:
- linux

services:
- docker

branches:
only:
- master
- develop

os:
- linux
env:
global:
- IMAGE=essentialkaos/perfecto:centos7

matrix:
fast_finish: true
allow_failures:
- go: tip

before_install:
- docker pull "$IMAGE"
- wget https://raw.githubusercontent.com/essentialkaos/perfecto/master/perfecto-docker
- chmod +x perfecto-docker
- make deps
- make deps-test

script:
- make test
- make all
- ./init-exporter --version
- ./perfecto-docker common/init-exporter.spec
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
// App props
const (
APP = "init-exporter"
VER = "0.20.0"
VER = "0.20.1"
DESC = "Utility for exporting services described by Procfile to init system"
)

Expand Down
5 changes: 4 additions & 1 deletion common/init-exporter.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

Summary: Utility for exporting services described by Procfile to init system
Name: init-exporter
Version: 0.20.0
Version: 0.20.1
Release: 0%{?dist}
Group: Development/Tools
License: MIT
Expand Down Expand Up @@ -111,6 +111,9 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Thu Jun 28 2018 Anton Novojilov <[email protected]> - 0.20.1-0
- Fixed bug with unit files naming if count property is equal 1

* Wed Jun 20 2018 Anton Novojilov <[email protected]> - 0.20.0-0
- Added support of resources usage limits configuration (systemd feature)
- Added support of kill mode configuration (systemd feature)
Expand Down
2 changes: 1 addition & 1 deletion export/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (e *Exporter) writeServicesUnits(app *procfile.Application) error {
}

for _, service := range app.Services {
if service.Options.Count <= 1 {
if service.Options.Count <= 0 {
err = e.writeServiceUnit(service, app.Name, "")

if err != nil {
Expand Down

0 comments on commit 2f60268

Please sign in to comment.