-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathcircle.yml
42 lines (39 loc) · 1.41 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
machine:
python:
version: 3.5.2
node:
version: 6.7.0
environment:
PATH: "${PATH}:~/.yarn/bin"
STAGE: $CIRCLE_BRANCH
dependencies:
cache_directories:
- ~/.ethash
- ~/.yarn
pre:
- sudo apt-get install -y software-properties-common
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
- sudo apt-get install -y ethereum ethminer
- if [[ ! -d ~/.ethash ]]; then ethminer -D 0; fi
- wget http://d1h4xl4cr1h0mo.cloudfront.net/v1.6.5/x86_64-unknown-linux-gnu/parity_1.6.5_amd64.deb
- sudo dpkg -i parity_1.6.5_amd64.deb
- pip install -r requirements-testing.txt
- ./configure_environment.sh
post:
- pip install --upgrade -e git+ssh://[email protected]/tokenbrowser/token-services-lib.git@$CIRCLE_BRANCH#egg=token-services || true
- if [ -z `which aglio` ]; then yarn global --cache-folder ~/.yarn/cache add aglio --prefix ~/.yarn; fi
test:
override:
- python -m tornado.testing discover -s tokeneth/test
deployment:
development:
branch: master
commands:
- git clone --depth 1 [email protected]:tokenbrowser/docs.git $HOME/docs
- $HOME/docs/deploy-blueprint.sh $CIRCLE_PROJECT_REPONAME docs/api.apib $CIRCLE_SHA1
- git push -f [email protected]:token-eth-service-development.git $CIRCLE_SHA1:master
production:
branch: production
commands:
- git push -f [email protected]:token-eth-service.git $CIRCLE_SHA1:master