Skip to content

Commit

Permalink
Merge pull request #1 from stephenlauck/ad/add-linux
Browse files Browse the repository at this point in the history
Adding linux suites
  • Loading branch information
Andrew DuFour authored Aug 3, 2018
2 parents 3e0b393 + 7a24221 commit 94b855a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ platforms:
- name: windows-2016
driver_config:
box: mwrock/Windows2016

- name: ubuntu-18.04

suites:
- name: default
Expand All @@ -24,3 +24,14 @@ suites:
inspec_tests:
- test/smoke/default
attributes:
excludes:
- ubuntu-18.04
- name: linux
run_list:
- recipe[windows-habitat-no-docker::linux]
verifier:
inspec_tests:
- test/smoke/default
attributes:
excludes:
- windows-2016
28 changes: 28 additions & 0 deletions habitat/plan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
$pkg_name="windows-habitat-no-docker"
$pkg_origin="lauck"
$pkg_version="0.1.0"
$pkg_maintainer="The Habitat Maintainers <[email protected]>"
$pkg_license=@("Apache-2.0")
$pkg_source="http://some_source_url/releases/${pkg_name}-${pkg_version}.zip"
# $pkg_filename="$pkg_name-$pkg_version.zip"
# $pkg_shasum="TODO"
# $pkg_deps=@()
# $pkg_build_deps=@()
# $pkg_lib_dirs=@("lib")
# $pkg_include_dirs=@("include")
# $pkg_bin_dirs=@("bin")
# $pkg_svc_run="MyBinary.exe"
# $pkg_exports=@{
# host="srv.address"
# port="srv.port"
# ssl-port="srv.ssl.port"
# }
# $pkg_exposes=@("port", "ssl-port")
# $pkg_binds=@{
# database="port host"
# }
# $pkg_binds_optional=@{
# storage="port host"
# }
# $pkg_description="Some description."
# $pkg_upstream_url="http://example.com/project-name"
21 changes: 21 additions & 0 deletions recipes/linux.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Cookbook:: windows-habitat-no-docker
# Recipe:: linux
#
# Copyright:: 2018, The Authors, All Rights Reserved.

remote_file '/tmp/habitat-install.sh' do
source 'https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh'
mode '0755'
end

file '/tmp/habitat-install.sh' do
mode '0755'
end

execute '/tmp/habitat-install.sh'

execute 'habitat build' do
cwd '/tmp/package'
command 'hab pkg build ./'
end

0 comments on commit 94b855a

Please sign in to comment.