-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (27 loc) · 1.15 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
language: go
go:
- 1.14.x
stage: test
install:
- primer_lugar=${PWD}
- git config --global user.email "${GH_EMAIL}"
- git config --global user.name "YakDriver"
- export TF_PROVIDER_LINT_PATH=${GOPATH}/src/github.com/bflad/tfproviderlint
- export AWS_PROVIDER_PATH=${GOPATH}/src/github.com/terraform-providers/terraform-provider-aws
- mkdir -p ${GOPATH}/src/github.com/bflad
- mkdir -p ${GOPATH}/src/github.com/terraform-providers
- cd ${GOPATH}/src/github.com/bflad
- git clone https://github.com/bflad/tfproviderlint.git
- cd ${GOPATH}/src/github.com/terraform-providers
- git clone https://github.com/terraform-providers/terraform-provider-aws.git
- cd ${GOPATH}/src/github.com/terraform-providers/terraform-provider-aws
- GO111MODULE=on go install ./awsproviderlint
- cd ${primer_lugar}
script:
- ./run_checks.sh
- git checkout main
- git add ./results/*
- git add README.md
- git commit -m "Update static checks with build $TRAVIS_BUILD_NUMBER"
- git remote add commit-origin https://${GH_TOKEN}@github.com/YakDriver/terraform-aws-provider-static-checks.git > /dev/null 2>&1
- git push --quiet --set-upstream commit-origin main