-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathcircle.yml
50 lines (46 loc) · 1.8 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
machine:
post:
- 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}
- git config --global user.email "[email protected]"
- git config --global user.name "Billings the Bot"
dependencies:
pre:
- sudo curl -L -o /usr/bin/docker 'http://s3-external-1.amazonaws.com/circle-downloads/docker-1.6.0-circleci'; chmod 0755 /usr/bin/docker; true
- sudo service docker start
- docker pull eris/erisdb:0.10
- docker pull eris/ipfs
- docker pull eris/keys
- docker pull eris/data
override:
- "cd ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/cmd/eris && go install"
test:
override:
- tests/test.sh
deployment:
master:
branch: master
commands:
- docker build -t eris/eris .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push eris/eris
- mkdir -p docs/eris-cli
- go run docs/generator.go
- "cd ~ && git clone [email protected]:eris-ltd/docs.erisindustries.com.git"
- "rsync -av docs/eris-cli ~/docs.erisindustries.com/documentation/"
- >
cd ~/docs.erisindustries.com;
if [ -z "$(git status --porcelain)" ]; then
echo "All Good!"
else
git add -A :/ &&
git commit -m "eris-cli build number $CIRCLE_BUILD_NUM doc generation" &&
git push origin master
fi
develop:
branch: develop
commands:
- docker build -t eris/eris:develop .
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push eris/eris:develop