forked from EmbeddedRPC/erpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (31 loc) · 1.24 KB
/
.travis.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
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
- clang
os:
- linux
- osx
osx_image: xcode8.3 # OS X 10.12
before_install:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update -qq; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install python bison flex libboost-dev libboost-filesystem-dev libboost-system-dev python ; fi
- if [ $TRAVIS_OS_NAME == linux ]; then pyenv install 2.7.12 ; pyenv global 2.7.12; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew install python bison flex && brew upgrade boost || true; fi
- if [ $TRAVIS_OS_NAME == osx ]; then curl "https://bootstrap.pypa.io/get-pip.py" | sudo python; fi
install:
#- sudo pip install --upgrade pip setuptools
#- CC=gcc sudo pip install requests[security]
- if [ $TRAVIS_OS_NAME == osx ]; then sudo pip install tornado; fi
- if [ $TRAVIS_OS_NAME == osx ]; then sudo pip install --user nose; fi
- if [ $TRAVIS_OS_NAME == osx ]; then sudo pip install pytest --upgrade --ignore-installed six; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo pip install pytest; fi
- sudo pip install pyyaml
- sudo pip install enum34
- sudo pip install pyserial
script:
- make all
- pushd erpcgen/test ; py.test ; popd
- python test/run_unit_tests.py