Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another Example of Kitchen-Docker and Travis CI #3

Closed
ghost opened this issue Nov 22, 2015 · 2 comments
Closed

Another Example of Kitchen-Docker and Travis CI #3

ghost opened this issue Nov 22, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 22, 2015

Hey Guys,

I just wanted to share another example of how I have been using this just incase anyone is interested.

language: ruby

sudo: required

services:
  - docker

# attempt to speed up build by installing Gecode 3.7.3 from Ubuntu 12.04
before_install:
  - sudo apt-get update
  - sudo apt-get -y install libqt4-dev libqtcore4 libqtgui4 libboost-dev
  - curl -O http://lug.mtu.edu/ubuntu/pool/universe/g/gecode/libgecode-dev_3.7.1-3_amd64.deb
  - curl -O http://lug.mtu.edu/ubuntu/pool/universe/g/gecode/libgecode-doc_3.7.1-3_all.deb
  - curl -O http://lug.mtu.edu/ubuntu/pool/universe/g/gecode/libgecode30_3.7.1-3_amd64.deb
  - curl -O http://lug.mtu.edu/ubuntu/pool/universe/g/gecode/libgecodeflatzinc30_3.7.1-3_amd64.deb
  - curl -O http://lug.mtu.edu/ubuntu/pool/universe/g/gecode/libgecodegist30_3.7.1-3_amd64.deb

install:
  - sudo dpkg -i *.deb
  - bundle install

script:
  - bundle exec rake style
  - bundle exec rake unit
  - bundle exec kitchen test -d never

env:
  global:
    - USE_SYSTEM_GECODE=1
    - KITCHEN_YAML=.kitchen.docker.yml
@zuazo
Copy link
Owner

zuazo commented Nov 22, 2015

Thanks for sharing, @st-isidore-de-seville. Yes, this is another good way to do it.

But keep in mind that installing Berkshelf using Gemfile is no longer recommended and it's better to use the version that comes with ChefDK instead.

From berkshelf/berkshelf#1466:

I would read my comments above, though, as installing from gem is an unsupported method for using Berkshelf. You should switch over to using ChefDK in your build pipelines and on your dev machines.

@ghost
Copy link
Author

ghost commented Nov 22, 2015

@zuazo thanks for that info. I appreciate it!

@ghost ghost closed this as completed Nov 22, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant