-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (56 loc) · 2.44 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
########################
# Author: Mengjuei Hsieh
# License: Public Domain
########################
language: cpp
os: linux
dist: trusty
group: beta
env: C_COMPILER=x86_64-w64-mingw32-gcc CXX_COMPILER=x86_64-w64-mingw32-g++ RC_COMPILER=x86_64-w64-mingw32-windres CROSS_COMPILE=yes
addons:
apt:
#sources:
# - ubuntu-toolchain-r-test
packages:
- binutils-mingw-w64-x86-64
- gcc-mingw-w64-x86-64
- g++-mingw-w64-x86-64
- gfortran-mingw-w64-x86-64
- mingw-w64
- mingw-w64-x86-64-dev
- mingw-w64-tools
before_install:
- sudo dpkg --add-architecture i386
- sudo add-apt-repository -y ppa:wine/wine-builds
- sudo apt-get update -qq
- sudo apt-get install -qq -y wine
- sudo apt-get install tree
- sudo apt-get autoremove
- export DISPLAY=:99.0
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- mkdir -p $HOME/.wine/drive_c/windows
- chmod -R 775 $HOME/.wine
- rm -f $HOME/.wine/drive_c/windows/libstdc++-6.dll
- rm -f $HOME/.wine/drive_c/windows/libgcc_s_sjlj-1.dll
- rm -f $HOME/.wine/drive_c/windows/libgfortran-3.dll
- rm -f $HOME/.wine/drive_c/windows/libquadmath-0.dll
- ln -sfn /usr/lib/gcc/x86_64-w64-mingw32/4.8/libstdc++-6.dll $HOME/.wine/drive_c/windows/
- ln -sfn /usr/lib/gcc/x86_64-w64-mingw32/4.8/libgcc_s_sjlj-1.dll $HOME/.wine/drive_c/windows/
- ln -sfn /usr/lib/gcc/x86_64-w64-mingw32/4.8/libgfortran-3.dll $HOME/.wine/drive_c/windows/
- ln -sfn /usr/lib/gcc/x86_64-w64-mingw32/4.8/libquadmath-0.dll $HOME/.wine/drive_c/windows/
- ln -sfn /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll $HOME/.wine/drive_c/windows/
install:
- curl -O http://zlib.net/zlib-1.2.8.tar.gz
- tar zxvf zlib-1.2.8.tar.gz
- git clone https://github.com/PacificBiosciences/htslib.git
- patch -p0 < htslib.patch
#- curl -O -L https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/pthreads/pthreads-20100604.zip
#- mkdir -p staging/x86_64-w64-mingw32/include
#- unzip pthreads-20100604.zip
#- unzip pthreads-20100604/mingw64/pthreads-w64.zip -d staging
#- curl -L https://raw.githubusercontent.com/Alexpux/mingw-w64/master/mingw-w64-headers/crt/errno.h -o staging/x86_64-w64-mingw32/include/errno.h
before_script:
- "export DISPLAY=:99.0"
script:
- make x64
- $PWD/x64/bin/htsfile -c $PWD/htslib/test/c1%23pad1.sam