-
Notifications
You must be signed in to change notification settings - Fork 6
/
circle.yml
29 lines (27 loc) · 1.44 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
machine:
post:
- pyenv global 2.7.11 3.5.1
dependencies:
cache_directories:
- venv
pre:
- pip install -r requirements.txt
- make __PYTHON=python tmp/koheron-python
- if [ ! -e venv/py2 ]; then make -C tmp/koheron-python PY2_VENV=../../venv/py2 PY3_VENV=../../venv/py3 ../../venv/py2 ../../venv/py3 && venv/py2/bin/pip install numpy==1.11.1 pytest && venv/py3/bin/pip3 install numpy==1.11.1 pytest; fi
- sudo bash -c "echo deb http://fr.archive.ubuntu.com/ubuntu/ wily main >> /etc/apt/sources.list"
- sudo bash -c "echo deb-src http://fr.archive.ubuntu.com/ubuntu/ wily main >> /etc/apt/sources.list"
- sudo apt-get update; sudo apt-get install gcc-5 g++-5 gcc-5-arm-linux-gnueabihf g++-5-arm-linux-gnueabihf
- 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
- sudo ln -s /usr/bin/arm-linux-gnueabihf-gcc-5 /usr/bin/arm-linux-gnueabihf-gcc
- sudo ln -s /usr/bin/arm-linux-gnueabihf-g++-5 /usr/bin/arm-linux-gnueabihf-g++
test:
pre:
- make CONFIG=config/config_armhf.yaml __PYTHON=python clean all
- make CONFIG=config/config_local.yaml __PYTHON=python clean all
- ./tmp/kserverd -c ./config/kserver_local.conf:
background: true
- sleep 5
- cat nohup.out
- make __PYTHON=python tmp/koheron-python
- make -C tmp/koheron-python PY2_VENV=../../venv/py2 PY3_VENV=../../venv/py3 test