-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (53 loc) · 1.76 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
52
53
---
language: ruby
rvm:
#- 2.3
- 2.5
sudo: required
env:
global:
- distribution=ubuntu
version=18.04
- COMMIT=${TRAVIS_COMMIT::8}
matrix:
- INSTANCE=default-ubuntu-1604
# - INSTANCE=default-centos-74
services:
- docker
before_install:
- curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 3.5.13
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- rvm version
jobs:
include:
- stage: kitchen create
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
before_script:
- sudo iptables -L DOCKER || sudo iptables -N DOCKER
script:
- rake kitchen:create:default-ubuntu-1604
- stage: kitchen converge
script:
- rake kitchen:converge:default-ubuntu-1604
- stage: kitchen verify
script:
- rake kitchen:verify:default-ubuntu-1604
- stage: kitchen destroy
script:
- rake kitchen:destroy:default-ubuntu-1604
- stage: Continuous Delivery Step, black box DAST etc tests
script:
# DODCKER_TOKEN must be entered travis website -> repository -> settings -> environment variables
- curl https://registry.hub.docker.com/u/dockerfoam/onos/trigger/$DOCKER_TOKEN/
after_success:
- stage: Continuous Deployment Step, one button to deploy docker image
script:
# DODCKER_TOKEN must be entered travis website -> repository -> settings -> environment variables
- curl https://registry.hub.docker.com/u/dockerfoam/onos/trigger/$DOCKER_TOKEN/
# Notify Ansible Galaxy when an ansible role builds successfully.
notifications:
#email: false
email:
on_success: never # default: change
on_failure: always # default: always
webhooks: https://galaxy.ansible.com/api/v1/notifications/