forked from libmir/numir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (60 loc) · 2.57 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
sudo: false
os:
- linux
language: d
d:
- ldc
- dmd
env:
- ARCH="x86_64"
matrix:
include:
- {os: linux, d: ldc, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
- {os: linux, d: dmd, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
before_install:
- sudo apt-get install -qq python-numpy
- cd test && python test_npy_fileio.py && cd ..
# https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo
- wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
- sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
- sudo apt-get update
- sudo apt-cache search mkl
- if [ $ARCH = "x86_64" ]; then
sudo apt-get install -qq intel-mkl-core-rt-2018.1-163;
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64:$LD_LIBRARY_PATH;
export LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64:$LIBRARY_PATH;
else
sudo apt-get install -qq intel-mkl-core-rt-32bit-2018.1-163;
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/ia32:$LD_LIBRARY_PATH;
export LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/lib/ia32:$LIBRARY_PATH;
fi
script:
- dub test --arch "$ARCH" --build=unittest-python-cov
# FIXME libcurl not found in 32bit
- if [ $ARCH = "x86_64" ]; then
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz;
tar xvf ffmpeg-git-64bit-static.tar.xz;
cd ffmpeg-git*/ && export PATH=`pwd`:$PATH && cd -;
export OMP_NUM_THREADS=1;
cd example/char_rnn && dub run --arch "$ARCH" --build=release;
cd -;
cd example/audio_separation && dub run --arch "$ARCH" --build=release;
cd -;
fi
# https://github.com/vibe-d/vibe.d/blob/master/README.md#additional-setup-on-linux-debianubuntumint
- if [ $DC = dmd ] && [ $ARCH = "x86_64" ]; then sudo apt-get install -qq libevent-dev libssl-dev; fi
- if [ $DC = dmd ] && [ $ARCH = "x86_64" ]; then make doc; fi
# https://github.com/blog/572-bypassing-jekyll-on-github-pages
- if [ $DC = dmd ] && [ $ARCH = "x86_64" ]; then touch docs/.nojekyll; fi
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
d: dmd
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: docs
on:
branch: master
condition: $DC = dmd && $ARCH = "x86_64"