-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (90 loc) · 2.53 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
85
86
87
88
89
90
91
92
93
94
95
96
97
language: ruby
sudo: required
addons:
apt:
packages:
- build-essential
- curl
- git
- file
- python-setuptools
- m4
- texinfo
- libbz2-dev
- libcurl4-openssl-dev
- libexpat-dev
- libncurses-dev
- zlib1g-dev
homebrew:
taps:
- homebrew/cask-versions
casks:
- java8
env:
global:
- TAP=octave-app/octave-app-blas
- TAP_REPO=octave-app/homebrew-octave-app-blas
- OCT_VARIANT=openblas
matrix:
include:
- os: osx
osx_image: xcode10.1
rvm: system
- os: osx
osx_image: xcode10.1
rvm: system
env:
- OCT_VARIANT=openblas@4.2
- os: osx
osx_image: xcode10.1
rvm: system
env:
- OCT_VARIANT=stable-openblas
- os: linux
dist: xenial
rvm: 2.3
branches:
only:
- master
install:
# Diagnostics
- echo PATH=$PATH
- echo original DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
# Actual build
# I don't know why we're fussing with DYLD_LIBRARY_PATH - apj
- unset DYLD_LIBRARY_PATH
- echo new DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
- if [ `uname` = "Linux" ]; then bash ci/setup_travis_linux.sh; fi
- if [ `uname` = "Linux" ]; then export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"; fi
- export HOMEBREW_DEVELOPER=1
- export HOMEBREW_NO_AUTO_UPDATE=1
- export HOMEBREW_FORCE_VENDOR_RUBY=1
- if [ `uname` = "Linux" ]; then brew update; brew install pkg-config; fi
# Slide this source checkout in to place as a tap
- mkdir -p $(brew --repo)/Library/Taps/octave-app
- ln -s "$TRAVIS_BUILD_DIR" "$(brew --repo)/Library/Taps/$TAP_REPO"
- export TRAVIS_BUILD_DIR="$(brew --repo)/Library/Taps/$TAP_REPO"
- chmod 0644 $(brew --repo)/Library/Taps/$TAP_REPO/Formula/*.rb
- umask 022
- brew tap --repair
- brew update
- if [ `uname` = "Linux" ]; then brew tap linuxbrew/xorg; fi
- brew tap-pin $TAP
- brew install --only-dependencies octave-openblas octave-openblas@4.2 r-openblas blas-ri atlas --without-docs
#- export HOMEBREW_VERBOSE=1
- export HOMEBREW_VERBOSE_USING_DOTS=1
script:
# Build Octaves without docs to avoid heavy MacTeX install
# Build variants in separate jobs to avoid timeouts
- travis_wait 50 brew install octave-${OCT_VARIANT} --without-docs
- brew test octave-${OCT_VARIANT}
# And let's try some other formulae too
- brew install r-openblas
- brew test r-openblas
- brew install blas-ri
- brew test blas-ri
- brew install atlas
- brew test atlas
- brew install blis
- brew test blis
# - brew test-bot --tap=$TAP