forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (46 loc) · 2.21 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
language: ruby
install:
- jdk_switcher use oraclejdk7
# Warning: Setting DYLD_* vars can break dynamic linking.
- unset DYLD_LIBRARY_PATH
# Warning: You have a non-Homebrew 'pkg-config' in your PATH
- sudo rm -f /usr/bin/pkg-config
# Warning: "config" scripts exist outside your system or Homebrew directories.
- sudo rm -f /usr/local/clang-3.4/bin/llvm-config
# Install gcc-4.9 system wide[Default is gcc-4.6]
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y > /dev/null
- sudo apt-get update -qq > /dev/null
- sudo apt-get install -y libyajl-dev libxml2-dev libxqilla-dev > /dev/null
- sudo apt-get install -y libstdc++-4.9-dev > /dev/null
- sudo apt-get install -y g++-4.9 gfortran-4.9 > /dev/null
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90 > /dev/null
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 > /dev/null
- sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-4.9 90 > /dev/null
# Install linuxbrew essentials
- sudo apt-get install -y build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev > /dev/null
# Install BLAS, LAPACK
- sudo apt-get install -y libblas-dev liblapack-dev > /dev/null
# Install openmpi
- sudo apt-get install openmpi-bin > /dev/null
- cd ..
- git clone https://github.com/Homebrew/linuxbrew.git
- PATH=$PWD/linuxbrew/bin:$PATH
- LD_LIBRARY_PATH=$PWD/linuxbrew/lib:$LD_LIBRARY_PATH
# Symlink gcc, gfortran
- ln -s $(which gcc) $PWD/linuxbrew/bin/gcc-$(gcc -dumpversion |cut -d. -f1,2)
- ln -s $(which g++) $PWD/linuxbrew/bin/g++-$(g++ -dumpversion |cut -d. -f1,2)
- ln -s $(which gfortran) $PWD/linuxbrew/bin/gfortran-$(gfortran -dumpversion |cut -d. -f1,2)
# Install pkg-config[See: https://github.com/Homebrew/homebrew-science/pull/1664#issuecomment-69259072]
- brew install pkg-config
- mkdir -p linuxbrew/Library/Taps/homebrew
# Tap homebrew/python
- brew tap homebrew/python
- mv homebrew-science linuxbrew/Library/Taps/homebrew/
- cd linuxbrew/Library/Taps/homebrew/homebrew-science
- brew tap --repair
# Incorrect file permissions: chmod 644
- chmod 644 *.rb
script:
- bash travisCI/travis.sh
notifications:
email: false