diff --git a/.travis.yml b/.travis.yml index cdeadec..12fca8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: false +sudo: required language: go @@ -8,13 +8,20 @@ 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 @@ -22,6 +29,9 @@ matrix: - 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 @@ -29,3 +39,4 @@ script: - make test - make all - ./init-exporter --version + - ./perfecto-docker common/init-exporter.spec diff --git a/cli/cli.go b/cli/cli.go index fc3567f..fddab6c 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -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" ) diff --git a/common/init-exporter.spec b/common/init-exporter.spec index e1a8400..2f50f37 100644 --- a/common/init-exporter.spec +++ b/common/init-exporter.spec @@ -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 @@ -111,6 +111,9 @@ rm -rf %{buildroot} ################################################################################ %changelog +* Thu Jun 28 2018 Anton Novojilov - 0.20.1-0 +- Fixed bug with unit files naming if count property is equal 1 + * Wed Jun 20 2018 Anton Novojilov - 0.20.0-0 - Added support of resources usage limits configuration (systemd feature) - Added support of kill mode configuration (systemd feature) diff --git a/export/exporter.go b/export/exporter.go index 3987f1f..c369d02 100644 --- a/export/exporter.go +++ b/export/exporter.go @@ -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 {