-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
51 lines (42 loc) · 1.18 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
sudo: required
services: docker
language: ruby
rvm:
- 2.4.3
env:
matrix:
- INSTANCE=netuitive-centos-6
- INSTANCE=netuitive-centos-7
- INSTANCE=netuitive-ubuntu-1604
- INSTANCE=netuitive-ubuntu-1804
# install:
# - sudo apt-get update -q
# - sudo apt-get install -q virtualbox --fix-missing
# - sudo wget -nv https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb
# - sudo dpkg -i vagrant_1.8.1_x86_64.deb
# - bundle install
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
before_install:
- openssl aes-256-cbc -K $encrypted_af4147ce6d9c_key -iv $encrypted_af4147ce6d9c_iv -in .travis/client.pem.enc -out client.pem -d || true # true to prevent it from failing on forked PRs
install: bundle --jobs=3 --retry=3
cache:
directories:
- vendor/bundle
# addons:
# apt:
# sources:
# - chef-stable-precise
# packages:
# - chefdk
script: INSTANCE=$INSTANCE make travisci
deploy:
provider: chef-supermarket
edge:
branch: req-chef-cookbook_uploader
user_id: metricly
client-key: .travis/client.pem
cookbook_name: netuitive
cookbook_category: Others
on:
tags: true