-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
75 lines (65 loc) · 2 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Sample .travis.yml for R projects.
#
# See README.md for instructions, or for more configuration options,
# see the wiki:
# https://github.com/craigcitro/r-travis/wiki
language: c
branches:
only:
- master
- osx_static
### For Linux
# os:
# - linux
### Use external static library
# before_install:
# - sudo apt-get install -qq libzmq3-dev
### For osx
os:
- osx
### Use external static library
before_install:
# - git clone git://github.com/zeromq/libzmq.git
# - curl -OL http://raw.github.com/snoweye/libzmq_osx/master/make_libzmq_osx.sh
# - chmod 755 make_libzmq_osx.sh
# - ./make_libzmq_osx.sh
install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
# - ./travis-tool.sh install_deps
script:
# - ./travis-tool.sh run_tests
# - ./travis-tool.sh install_github snoweye/pbdZMQ
# - R CMD INSTALL .
- Rscript -e "sessionInfo()"
- export PKG_ZMQ=`pwd`
- cd ..
- R CMD build --no-resave-data --no-manual --no-build-vignettes ${PKG_ZMQ}
- cd ${PKG_ZMQ}
- R CMD INSTALL ../pbdZMQ_*.tar.gz
- mkdir ../Rlib
- export R_LIBS_USER=`pwd`/../Rlib
# - cp -R /Library/Frameworks/R.framework/Versions/3.5/Resources/library/pbdZMQ ../Rlib
- Rscript -e "print(.libPaths())"
- export R_LIBS_SYS=`Rscript -e "cat(.libPaths()[2])"`
- echo ${R_LIBS_SYS}
- cp -R ${R_LIBS_SYS}/pbdZMQ ../Rlib
- otool -L ../Rlib/pbdZMQ/libs/pbdZMQ.so
- otool -L ../Rlib/pbdZMQ/libs/libzmq.5.dylib
- Rscript -e "cat(pbdZMQ::get.zmq.cppflags())"
- otool -L ../Rlib/pbdZMQ/libs/libzmq.5.dylib
- Rscript -e "cat(pbdZMQ::get.zmq.ldflags())"
- Rscript -e "cat(pbdZMQ::get.pbdZMQ.ldflags())"
- Rscript -e "pbdZMQ::test.load.zmq()"
- mv ../Rlib ../Rlib.new
- export R_LIBS_USER=`pwd`/../Rlib.new
- Rscript -e "library(pbdZMQ)"
- otool -L ../Rlib.new/pbdZMQ/libs/libzmq.5.dylib
after_failure:
# - ./travis-tool.sh dump_logs
notifications:
email:
on_success: no
on_failure: no
sudo: required