|
@@ -6,11 +6,9 @@ env:
|
6
|
6
|
- NODE5=true
|
7
|
7
|
- NODE012=true
|
8
|
8
|
install:
|
9
|
|
- - if [ "${NODE4}" ]; then export CC=gcc-4.8 CXX=g++-4.8; fi
|
10
|
|
- - sudo add-apt-repository --yes ppa:kalakris/cmake
|
11
|
9
|
- sudo add-apt-repository --yes ppa:fenics-packages/fenics-exp/swig
|
12
|
10
|
- sudo apt-get update -qq
|
13
|
|
- - sudo apt-get install -y -qq swig3.0 python git cmake
|
|
11
|
+ - sudo apt-get install -y -qq swig3.0 git
|
14
|
12
|
- sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
|
15
|
13
|
- sudo update-java-alternatives -s java-8-oracle
|
16
|
14
|
before_script:
|
|
@@ -21,17 +19,20 @@ before_script:
|
21
|
19
|
- if [ "${NODE5}" ]; then nvm install 5; export CC=gcc-4.8; export CXX=g++-4.8; export NODE_ROOT_DIR="/home/travis/.nvm/versions/node/`nvm version`"; fi
|
22
|
20
|
- if [ "${NODE012}" ]; then nvm install 0.12; export NODE_ROOT_DIR="/home/travis/.nvm/versions/node/`nvm version`"; fi
|
23
|
21
|
script:
|
24
|
|
- - git clone --branch=firmata https://github.com/intel-iot-devkit/mraa.git
|
|
22
|
+ - git clone https://github.com/intel-iot-devkit/mraa.git
|
25
|
23
|
- cd mraa && mkdir build && cd build && cmake -DBUILDSWIGJAVA=$BUILDJAVA -DBUILDSWIGNODE=OFF -DBUILDSWIGPYTHON=OFF -DFIRMATA=ON -DENABLEEXAMPLES=OFF -DCMAKE_INSTALL_PREFIX:PATH=. .. && make && make install
|
26
|
24
|
- export PKG_CONFIG_PATH=$PWD/lib/pkgconfig:$PWD/lib/x86_64-linux-gnu/pkgconfig
|
27
|
25
|
- export CPLUS_INCLUDE_PATH=$PWD/include
|
28
|
26
|
- export LIBRARY_PATH=$PWD/lib:$PWD/lib/x86_64-linux-gnu
|
29
|
|
- - cd ../.. && mkdir build && cd build && cmake -DNODE_ROOT_DIR:PATH="${NODE_ROOT_DIR}" -DBUILDSWIGJAVA=$BUILDJAVA -DBUILDEXAMPLES=ON -DBUILDJAVAEXAMPLES=$BUILDJAVA .. && make && make test
|
|
27
|
+ - cd ../.. && mkdir build && cd build && cmake -DNODE_ROOT_DIR:PATH="${NODE_ROOT_DIR}" -DBUILDSWIGJAVA=$BUILDJAVA -DBUILDEXAMPLES=ON -DBUILDJAVAEXAMPLES=$BUILDJAVA .. && make
|
30
|
28
|
addons:
|
31
|
29
|
apt:
|
32
|
30
|
sources:
|
33
|
31
|
- llvm-toolchain-precise-3.6
|
34
|
32
|
- ubuntu-toolchain-r-test
|
|
33
|
+ - george-edison55-precise-backports
|
35
|
34
|
packages:
|
36
|
35
|
- clang-3.6
|
37
|
36
|
- g++-4.8
|
|
37
|
+ - cmake
|
|
38
|
+ - cmake-data
|