This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
forked from WeKnowSports/terraform-provider-kong
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
39 lines (38 loc) · 1.34 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
sudo: required
language: go
services:
- docker
go:
- 1.8.x
before_install:
- curl -L https://releases.hashicorp.com/terraform/0.9.11/terraform_0.9.11_linux_amd64.zip > terraform.zip && unzip terraform.zip -d terraform && export PATH=$PATH:$PWD/terraform && echo $(terraform --version)
- DOCKER_COMPOSE_VERSION="1.7.1"
- echo "Installing docker and docker compose"
- sudo apt-get update -y && sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-ce jq curl
- sudo rm /usr/local/bin/docker-compose && curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose && sudo mv docker-compose /usr/local/bin && export PATH=$PATH:$HOME/.local/bin
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
install:
- echo $GOPATH
- go get github.com/dghubble/sling
- go get github.com/hashicorp/terraform/helper/schema
- go get github.com/hashicorp/terraform/terraform
- go get github.com/hashicorp/terraform/plugin
- go get net/rpc
- echo $(pwd)
script:
- docker-compose up -d
- sleep 1m
- ./start.sh init apply
- ./start.sh tests apply
#deploy:
# - provider: releases
# skip_cleanup: true
# file:
# on:
# branch: develop
# - provider: releases
# skip_cleanup: true
# file:
# on:
# branch: master