This repository has been archived by the owner on May 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #855 from boxen/nuke-etc-boxen
Support moving all Homebrew configurations to `$HOMEBREW_ROOT/etc/boxen`
- Loading branch information
Showing
41 changed files
with
165 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
os: | ||
- osx | ||
script: | ||
- rm -rf /usr/local/Homebrew | ||
- travis_wait 60 rvm implode --force | ||
- travis_wait 60 ./script/boxen --no-fde --no-pull --profile --login $BOXEN_GITHUB_LOGIN --token $BOXEN_GITHUB_TOKEN || test $? -eq 2 | ||
- ./script/boxen --no-fde --stealth --no-pull --debug --profile --login $BOXEN_GITHUB_LOGIN --token $BOXEN_GITHUB_TOKEN || test $? -eq 2 | ||
- source /opt/boxen/env.sh | ||
- rake spec | ||
- bundle exec rspec spec | ||
before_install: | ||
- sudo gem install bundler -v '~> 1.13' | ||
env: | ||
global: | ||
secure: HoCPuAgujmw+tdH7qq9bSymtpE8o4gpp1uYRyFin2TB3px2JdOPCPCb754vddmE12zhhKKSy1j0Uj/qeW6tjy9hIhlAjLAGFuT+mNTURqu4nmojCgKO2ApcRWc3yv319XR2vjUDW1qmEyKm7il4q1c/dOFmGbVYeDixjUUfWVII= | ||
- HOMEBREW_NO_AUTO_UPDATE=1 | ||
- HOMEBREW_VERBOSE=1 | ||
- secure: HoCPuAgujmw+tdH7qq9bSymtpE8o4gpp1uYRyFin2TB3px2JdOPCPCb754vddmE12zhhKKSy1j0Uj/qeW6tjy9hIhlAjLAGFuT+mNTURqu4nmojCgKO2ApcRWc3yv319XR2vjUDW1qmEyKm7il4q1c/dOFmGbVYeDixjUUfWVII= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require 'spec_helper' | ||
|
||
# describe 'script/nuke' do | ||
# describe command('/opt/boxen/repo/script/nuke --help') do | ||
# its(:stdout) { should include '--all' } | ||
# its(:stdout) { should include '--force' } | ||
# its(:stdout) { should include '--opt' } | ||
# its(:stdout) { should include '--services' } | ||
# its(:stdout) { should include '--receipts' } | ||
# its(:stdout) { should include '--gitconfig' } | ||
# its(:stdout) { should include '--homebrew-config' } | ||
# end | ||
|
||
# describe '--homebrew-config' do | ||
# it "cleans out $HOMEBREW_ROOT" do | ||
# creation_command_exit_status = command('touch $HOMEBREW_ROOT/etc/boxen/service.config').exit_status | ||
# cleanup_command_exit_status = command('/opt/boxen/repo/script/nuke --force --homebrew-config').exit_status | ||
# file_count_stdout = command('find $HOMEBREW_ROOT/etc/boxen -type f | wc -l').stdout.strip | ||
|
||
# expect(creation_command_exit_status).to eq(0) | ||
# expect(cleanup_command_exit_status).to eq(0) | ||
# expect(file_count_stdout).to eq("0") | ||
# end | ||
# end | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require 'spec_helper' | ||
|
||
describe file('/opt/boxen/repo') do | ||
it { should be_directory } | ||
end | ||
|
||
describe 'Boxen managed configuration files' do | ||
describe file('/usr/local/etc/boxen') do | ||
it { should be_directory } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'spec_helper' | ||
|
||
describe package('git') do | ||
it { should be_installed } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'spec_helper' | ||
|
||
describe package('hub') do | ||
it { should be_installed } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
%w(ack findutils gnu-tar).each do |package_name| | ||
describe package(package_name) do | ||
it { should be_installed } | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require 'spec_helper' | ||
|
||
describe 'dnsmasq' do | ||
describe file('/usr/local/etc/boxen/dnsmasq') do | ||
it { should be_directory } | ||
end | ||
|
||
describe file('/usr/local/etc/boxen/dnsmasq/dnsmasq.conf') do | ||
it { should be_file } | ||
end | ||
|
||
describe file('/opt/boxen/data/dnsmasq') do | ||
it { should be_directory } | ||
end | ||
|
||
describe file('/opt/boxen/log/dnsmasq') do | ||
it { should be_directory } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
require 'spec_helper' | ||
|
||
describe 'nginx' do | ||
describe file('/usr/local/etc/boxen/nginx') do | ||
it { should be_directory } | ||
end | ||
|
||
describe file('/usr/local/etc/boxen/nginx/sites') do | ||
it { should be_directory } | ||
end | ||
|
||
describe file('/usr/local/etc/boxen/nginx/public') do | ||
it { should be_directory } | ||
end | ||
|
||
describe file('/usr/local/etc/boxen/nginx/nginx.conf') do | ||
it { should be_file } | ||
end | ||
|
||
describe file('/opt/boxen/log/nginx') do | ||
it { should be_directory } | ||
end | ||
|
||
describe file('/opt/boxen/data/nginx') do | ||
it { should be_directory } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
require 'serverspec' | ||
|
||
set :backend, :exec | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.