forked from fabric8io/kansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
32 lines (28 loc) · 1.01 KB
/
circle.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
machine:
environment:
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
dependencies:
pre:
- echo $PATH
- wget "https://github.com/Masterminds/glide/releases/download/0.8.2/glide-0.8.2-linux-amd64.tar.gz"
- mkdir /home/ubuntu/.go_workspace/bin || true
- tar -vxz -C /home/ubuntu/.go_workspace/bin --strip=1 -f glide-0.8.2-linux-amd64.tar.gz
- mkdir -p "/home/ubuntu/.go_workspace/src/$IMPORT_PATH" || true
- rsync -azC --delete ./ "/home/ubuntu/.go_workspace/src/$IMPORT_PATH/"
override:
- rm -rf vendor
- make bootstrap build:
pwd: "../.go_workspace/src/$IMPORT_PATH/"
test:
override:
- make test lint:
pwd: "../.go_workspace/src/$IMPORT_PATH/"
# Disabled for now to avoid conflicts with the Jenkins builds:
#deployment:
# hub:
# branch: master
# owner: fabric8io
# commands:
# - docker build -t fabric8/kansible .
# - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
# - docker push fabric8/kansible