forked from buildbot/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
42 lines (37 loc) · 1.29 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
# Circle CI configuration file
# https://circleci.com/docs/
machine:
python:
version: 2.7.11
node:
version: 6.11.4
dependencies:
pre:
- sudo apt-get update; sudo apt-get install libenchant-dev python3-dev
- go get github.com/tcnksm/ghr
override:
- pip install -U pip
- pip install -r requirements-ci.txt
- pip install -r requirements-cidocs.txt
- (cd www/base; yarn install)
test:
override:
- make docs
- make tarballs
# pyinstaller: build the buildbotworker in a special virtualenv
# circle ci pythons do not include the necessary dynamic libraries for pyinstaller
- virtualenv -p /usr/bin/python3.4 .venv/
- .venv/bin/pip install twisted[tls] -e worker pyinstaller
- .venv/bin/pyinstaller -F pyinstaller/buildbot-worker.spec
# we test the new generated binary with the global virtualenv
- SANDBOXED_WORKER_PATH=`pwd`/dist/buildbot-worker trial --reporter=text --rterrors buildbot.test.integration.interop
general:
artifacts:
- "master/docs/_build/html/"
- "dist"
deployment:
release:
tag: /v.*/
commands:
- mv dist/buildbot-worker dist/buildbot-worker-linux-amd64-`git describe --tags`.bin
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/