This repository has been archived by the owner on Jan 28, 2020. It is now read-only.
forked from tomtruitt/eris-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
51 lines (48 loc) · 1.98 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
machine:
environment:
GOPATH: $HOME/.go_workspace
GO15VENDOREXPERIMENT: 1
REPO: ${GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
ECM_BRANCH: develop
EPM_BRANCH: develop
MINDY_BRANCH: master
DOCKER_VERSION: 1.9.1
DOCKER_MACHINE_VERSION: 0.7.0
post:
- git config --global user.email "[email protected]"
- git config --global user.name "Billings the Bot"
- rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
- mkdir -p ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME} ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
dependencies:
override:
- sudo curl -sSL -o /usr/bin/docker http://s3-external-1.amazonaws.com/circle-downloads/docker-$DOCKER_VERSION-circleci; sudo chmod 0755 /usr/bin/docker
- sudo curl -sSL -o /usr/bin/docker-machine https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-linux-x86_64; sudo chmod 0755 /usr/bin/docker-machine
- sudo start docker
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS quay.io
- go version
- docker version
- docker-machine version
- cd ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/cmd/eris && go install
test:
override:
- case ${CIRCLE_NODE_INDEX} in 0) SKIP_STACK=true tests/test.sh;; 1) SKIP_PACKAGES=true tests/test.sh;; esac:
parallel: true
- "tests/dm_cleanup.sh"
deployment:
master:
branch: master
commands:
- docker rmi quay.io/eris/eris:master
- docker push quay.io/eris/eris
- docs/build.sh master
# build data image because it is versioned
- tests/build_other_images.sh
- docker push quay.io/eris/data
develop:
branch: develop
commands:
- docs/build.sh
# see above
- tests/build_other_images.sh
- docker push quay.io/eris/data