forked from openshift-metal3/terraform-provider-ironic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (28 loc) · 1003 Bytes
/
.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
dist: xenial
sudo: false
language: go
env:
- TF_LOG=debug TF_ACC=true TAGS="acceptance"
go:
- 1.13.x
git:
depth: 1
go_import_path: github.com/openshift-metal3/terraform-provider-ironic
install: true
services:
- docker
before_install:
- sudo apt-get install -y genisoimage
before_script:
- docker run -d --net host --privileged --name mariadb --entrypoint /bin/runmariadb quay.io/metal3-io/ironic:master
- docker run -d --net host --privileged -e "PROVISIONING_IP=127.0.0.1" --name ironic quay.io/metal3-io/ironic:master
- docker run -d --net host --privileged -e "PROVISIONING_IP=127.0.0.1" --net host quay.io/metal3-io/ironic-inspector:master
- docker run --net host -e TARGETS=127.0.0.1:3306,127.0.0.1:6385,127.0.0.1:5050 -e TIMEOUT=60 waisbrot/wait
script:
- make fmt
- make lint
- make test
after_failure:
- docker logs mariadb
- docker exec ironic cat /shared/log/ironic/ironic-api.log
- docker exec ironic cat /shared/log/ironic/ironic-conductor.log