/
circle.yml
32 lines (29 loc) · 932 Bytes
/
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:
post:
- pyenv global 2.7.11 3.5.1
dependencies:
cache_directories:
- "venv"
pre:
- pip install twine
- make venv/py2 venv/py3
# https://discuss.circleci.com/t/caching-apt-get-install-results/563
- sudo apt-get update -y; true
- sudo apt-get install apt -y
- sudo -E add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -y; true
- sudo apt-get install -y gcc-5 g++-5
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
test:
pre:
- make ./tmp/koheron-server/tmp/kserverd
- ./tmp/koheron-server/tmp/kserverd -c ./tmp/koheron-server/config/kserver_local.conf:
background: true
- sleep 5
- make test
deployment:
hub:
branch: master
commands:
- make PYPI_USERNAME=$PYPI_USERNAME PYPI_PASSWORD=$PYPI_PASSWORD deploy