Skip to content

Commit ab38804

Browse files
committed
modified release script
1 parent bcdfdee commit ab38804

File tree

1 file changed

+17
-65
lines changed

1 file changed

+17
-65
lines changed

.circleci/config.yml

Lines changed: 17 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -9,101 +9,53 @@ jobs:
99

1010
working_directory: /go/src/github.com/warrensbox/terraform-switcher
1111

12-
steps:
13-
- checkout
14-
- run: go get -v -t -d ./...
15-
- run: go vet -tests=false ./...
16-
- run: go test -v ./...
17-
- run: mkdir -p build
18-
- run: go build -v -o build/tfswitch
19-
20-
- persist_to_workspace:
21-
root: build
22-
paths: tfswitch
23-
24-
test-ubuntu:
25-
docker:
26-
- image: "circleci/ubuntu-server"
27-
28-
steps:
29-
30-
- run: ls
31-
32-
- attach_workspace:
33-
at: build
34-
35-
test-alpine:
36-
docker:
37-
- image: "mhart/alpine-node"
38-
39-
steps:
40-
- run: ls
41-
42-
develop-master:
43-
docker:
44-
- image: warrensbox/go-rb-py-aws
45-
4612
steps:
4713
- checkout
4814
- run:
49-
command: |
50-
echo "Placeholder"
51-
# cd docs; bundle install --path vendor/bundler; bundle exec jekyll build -c _config.yml; cd ..
52-
# git config user.email "warren.veerasingam@gmail.com"
53-
# git config user.name "warrensbox"
54-
# git add .
55-
# git commit -m "Release Version"
56-
# git push origin ${RELEASE_VERSION}
57-
15+
command: |
16+
set +e
17+
go get -v -t -d ./...
18+
go vet -tests=false ./...
19+
go test -v ./...
20+
mkdir -p build
21+
go build -v -o build/tfswitch
5822
5923
release:
6024
docker:
61-
- image: warrensbox/go-rb-py-aws
25+
- image: circleci/golang:1.11
26+
27+
working_directory: /go/src/github.com/warrensbox/terraform-switcher
6228

6329
steps:
6430
- checkout
6531
- run:
6632
command: |
67-
set +e
33+
set +e
6834
source version
6935
export RELEASE_VERSION;
7036
RELEASE_VERSION=$RELEASE_VERSION.${CIRCLE_BUILD_NUM}
7137
export RELEASE_VERSION;
7238
echo $RELEASE_VERSION
73-
74-
go get -v -t -d ./...
39+
mkdir -p /home/circleci/bin
40+
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
41+
export PATH="/home/warrensbox/bin:${PATH}"
42+
rm -rf dist
7543
git config user.email "warren.veerasingam@gmail.com"
7644
git config user.name "warrensbox"
7745
git tag -a ${RELEASE_VERSION} -m "Release Version"
7846
git push origin ${RELEASE_VERSION}
79-
curl -L https://git.io/goreleaser | VERSION=v0.76.1 bash
47+
curl -L https://git.io/goreleaser | VERSION=v0.99.0 bash -s -- --rm-dist
8048
81-
cd docs; bundle install --path vendor/bundler; bundle exec jekyll build -c _config.yml; cd ..
8249
8350
workflows:
8451
version: 2
8552

8653
build_and_test:
8754
jobs:
8855
- build
89-
- test-ubuntu:
90-
requires:
91-
- build
92-
- test-alpine:
93-
requires:
94-
- build
95-
- develop-master:
96-
requires:
97-
- test-ubuntu
98-
- test-alpine
99-
filters:
100-
branches:
101-
only:
102-
- master
103-
- release
10456
- release:
10557
requires:
106-
- develop-master
58+
- build
10759
filters:
10860
branches:
10961
only:

0 commit comments

Comments
 (0)