-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
84 lines (79 loc) · 1.9 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
76
77
78
79
80
81
82
83
84
language: c
compiler:
- gcc
jobs:
include:
- os: linux
name: Ubuntu 14.04
dist: trusty
env:
- BADGE=Ubuntu_14.04
- MAKE=make
- os: linux
name: Ubuntu 16.04
dist: xenial
env:
- BADGE=Ubuntu_16.04
- MAKE=make
- os: linux
name: Ubuntu 18.04
dist: bionic
env:
- BADGE=Ubuntu_18.04
- MAKE=make
- os: linux
name: Ubuntu 20.04
dist: focal
env:
- BADGE=Ubuntu_20.04
- MAKE=make
- os: linux
name: Ubuntu 22.04
dist: jammy
env:
- BADGE=Ubuntu_22.04
- MAKE=make
- os: windows
name: Windows
env:
- BADGE=Windows
- MAKE=mingw32-make
- os: osx
name: OSX
osx_image: xcode13.4
env:
- BADGE=OSX
- MAKE=make
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install liboctave-dev; fi
# - if [ "$TRAVIS_OS_NAME" = "windows" ]; then
# choco install octave.portable --version=4.2.1;
# export PATH=/c/ProgramData/chocolatey/lib/octave.portable/tools/octave/bin:.:${PATH};
# fi
addons:
apt:
packages:
- liboctave-dev
update: true
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
octave-cli --eval "addpath(pwd);cd test;run_zmat_test";
fi
- ${MAKE} -C src lib
- ${MAKE} -C example/c all LIBTYPE=
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
DYLD_LIBRARY_PATH=lib example/c/testzmat;
else
LD_LIBRARY_PATH=lib example/c/testzmat;
fi
- ${MAKE} -C src dll
- ${MAKE} -C example/c all LIBTYPE=
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
DYLD_LIBRARY_PATH=lib example/c/testzmat;
else
LD_LIBRARY_PATH=lib example/c/testzmat;
fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
${MAKE} -C src oct;
octave-cli --eval "addpath(pwd);cd test;run_zmat_test";
fi