-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
66 lines (64 loc) · 2.42 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
language: c
stages:
- build
- test
jobs:
include:
- stage: build
name: build-linux
before_install:
- sudo apt-get update
- sudo apt-get install -y libblas-dev libboost-all-dev libgsl0-dev maven
script:
- make clean
- make linux
- make install
- stage: build
name: build-windows
before_install:
- sudo apt-get update
- sudo apt-get install -y maven apt-transport-https
#tools required for cross platform compilation by mxe
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 86B72ED9
- sudo add-apt-repository 'deb [arch=amd64] http://mirror.mxe.cc/repos/apt trusty main'
- sudo apt-get update
- sudo apt-get install -y mxe-x86-64-w64-mingw32.static-gcc mxe-x86-64-w64-mingw32.static-cblas mxe-x86-64-w64-mingw32.static-boost mxe-x86-64-w64-mingw32.static-blas
- export PATH=$PATH:/usr/lib/mxe/usr/bin
script:
- make clean
- make windows
- make install
# - stage: build
# name: build-osx
# before_install:
# - sudo apt-get update
# - sudo apt-get install -y clang make libssl-devel lzma-devel libxml2-devel
#
# - cd $HOME
# - git clone https://github.com/tpoechtrager/osxcross.git
# - cd osxcross
# # normally we should download this file - but due to licensing issue this cannot be done automatically without breaking license
# # so create an account sign up as developer accept license and download:
# # wget https://download.developer.apple.com/Developer_Tools/Xcode_10.3/Xcode_10.3.xip
# - ./tools/gen_sdk_package_pbzx.sh Xcode_10.3.xip
# - mv MacOSX10.14.sdk.tar.xz tarballs/
# - ./build.sh
# - ./build_gcc.sh
# - cd $HOME
# - mkdir boost && cd boost
# - wget --content-disposition "http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.55.0%2F&ts=1402397648&use_mirror=softlayer-ams"
# - tar -xzf boost_1_55_0.tar.gz
# - cd $HOME/claczny/VizBin
#
# script:
# - make clean
# - make osx
# - make install
- stage: test
name: test java
before_install:
- sudo apt-get update
- sudo apt-get install -y openjdk-8-jdk
script:
- cd src/interface/VizBin/
- mvn test