Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
163 additions
and
156 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 |
---|---|---|
|
@@ -23,3 +23,5 @@ Vagrantfile | |
# sublime text | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
test/cookbooks/clamav_test/files/*.cvd |
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,13 +1,13 @@ | ||
--- | ||
driver: | ||
name: digitalocean | ||
# Clamd will fail to start on some distros with only 512MB | ||
size: 1gb | ||
name: docker | ||
privileged: true | ||
|
||
platforms: | ||
# - name: ubuntu-14-10-x64 | ||
- name: ubuntu-14-04-x64 | ||
- name: ubuntu-12-04-x64 | ||
- name: centos-7-0-x64 | ||
- name: centos-6-5-x64 | ||
# TODO: DO's 5.10 image has the slug name of 5.8 for some reason | ||
- name: centos-5-8-x64 | ||
- name: ubuntu-14.04 | ||
- name: ubuntu-12.04 | ||
- name: centos-7 | ||
driver: | ||
image: roboticcheese/centos-7-systemd | ||
- name: centos-6 | ||
- name: centos-5 |
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 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 |
---|---|---|
@@ -1,20 +1,31 @@ | ||
language: ruby | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
cache: | ||
directories: | ||
- test/cookbooks/clamav_test/files | ||
|
||
env: | ||
- CVD_PATH=test/cookbooks/clamav_test/files | ||
|
||
install: | ||
- curl -L https://www.opscode.com/chef/install.sh | sudo bash -s -- -P chefdk | ||
- curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -P chefdk | ||
- chef exec bundle install --without=development integration | ||
|
||
before_script: | ||
# Pending ENV support in Kitchen's Rake tasks and not just the CLI | ||
- mkdir -p $CVD_PATH | ||
- "[ -e $CVD_PATH/main.cvd ] || wget -P $CVD_PATH http://database.clamav.net/main.cvd" | ||
- "[ -e $CVD_PATH/daily.cvd ] || wget -P $CVD_PATH http://database.clamav.net/daily.cvd" | ||
- "[ -e $CVD_PATH/bytecode.cvd ] || wget -P $CVD_PATH http://database.clamav.net/bytecode.cvd" | ||
- cp .kitchen.travis.yml .kitchen.local.yml | ||
- echo -e $DIGITALOCEAN_SSH_KEY_BODY > ~/.ssh/id_rsa | ||
|
||
script: | ||
- chef exec rake && chef exec bundle exec kitchen test -c 4 | ||
|
||
after_script: | ||
- chef exec bundle exec kitchen destroy | ||
|
||
env: | ||
global: | ||
# - KITCHEN_LOCAL_YAML=.kitchen.travis.yml | ||
- chef exec rake && chef exec kitchen test |
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
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
Oops, something went wrong.