1 Star 0 Fork 0

PengLu / psopt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 3.15 KB
一键复制 编辑 原始数据 按行查看 历史
Victor M. Becerra 提交于 2019-02-24 06:32 . update to .travis.yml
language: cpp
before_install:
#- export LD_LIBRARY_PATH=/usr/lib/openblas-base:$LD_LIBRARY_PATH
#- sh ./install-ubuntu-18.04.sh
- # Script for Ubuntu 18.04
- # Install miscellaneous libraries
- sudo apt-get install build-essential pkg-config
- sudo apt-get install dh-autoreconf
- sudo apt-get -y install g++ gfortran f2c libf2c2-dev libf2c2 libblas-dev libopenblas-base libopenblas-dev libblas3 libatlas-base-dev liblapack-dev liblapack3
#- ls /usr/lib/openblas-base
#- sudo cp /usr/lib/openblas-base/* /usr/lib/
# - sudo ln -s /usr/lib/libblas.so /usr/lib/libopenblas.so
- # Download and install Ipopt, Metis and Mumps
- mkdir $HOME/Downloads
- cd $HOME/Downloads
- wget --continue http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.12.tgz
- cd $HOME
- tar xzvf ./Downloads/Ipopt-3.12.12.tgz
- cd $HOME/Ipopt-3.12.12/ThirdParty/Metis
- ./get.Metis
- cd $HOME/Ipopt-3.12.12/ThirdParty/Mumps
- ./get.Mumps
- cd $HOME/Ipopt-3.12.12
- ./configure --enable-static coin_skip_warn_cxxflags=yes
- make -j4 > /dev/null
- make install > /dev/null
- # Download and install ADOLC and ColPack
- cd $HOME/Downloads
- wget --continue www.coin-or.org/download/source/ADOL-C/ADOL-C-2.6.3.tgz
- cd $HOME
- tar zxvf ./Downloads/ADOL-C-2.6.3.tgz
- cd $HOME/ADOL-C-2.6.3
- mkdir ./ThirdParty
- cd ./ThirdParty
- wget --continue http://archive.ubuntu.com/ubuntu/pool/universe/c/colpack/colpack_1.0.10.orig.tar.gz
- tar zxvf colpack_1.0.10.orig.tar.gz
- mv ColPack-1.0.10 ColPack
- cd ColPack
- ./autoconf.sh
- make >/dev/null
- sudo make install >/dev/null
- sudo cp -P ./build/lib/libCol* /usr/lib
- cd $HOME/ADOL-C-2.6.3
- ./configure --enable-sparse --with-colpack=$HOME/ADOL-C-2.6.3/ThirdParty/ColPack/build >/dev/null
- make -j4 > /dev/null
- make install > /dev/null
- sudo cp -P $HOME/adolc_base/lib64/lib* /usr/lib
- sudo cp -r $HOME/adolc_base/include/* /usr/include/
- # Download and install PDFlib
- cd $HOME/Downloads
- wget --continue https://fossies.org/linux/misc/old/PDFlib-Lite-7.0.5p3.tar.gz
- tar zxvf PDFlib-Lite-7.0.5p3.tar.gz
- cd PDFlib-Lite-7.0.5p3
- ./configure >/dev/null
- make -j4>/dev/null; sudo make install >/dev/null
- sudo ldconfig
- # Download and install GNUplot
- cd $HOME/Downloads
- wget --continue https://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz/download
- mv download gnuplot-4.4.0.tar.gz
- tar zxvf gnuplot-4.4.0.tar.gz
- sudo apt-get -y install libx11-dev libxt-dev libreadline6-dev libgd-dev
- cd gnuplot-4.4.0
- ./configure -with-readline=gnu -without-tutorial >/dev/null
- make -j4>/dev/null;sudo make install >/dev/null
- cd $TRAVIS_BUILD_DIR
- # Download and extract SuiteSparse
- wget --continue http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.4.3.tar.gz
- tar zxvf SuiteSparse-4.4.3.tar.gz
- cd $TRAVIS_BUILD_DIR
- # Download and extract LUSOL
- wget --continue http://www.stanford.edu/group/SOL/software/lusol/lusol.zip
- unzip lusol.zip
install:
- # Compile SuiteSparse, LUSOL, dmatrix and PSOPT
- cd $TRAVIS_BUILD_DIR
- make all
script:
- echo 'done'
C++
1
https://gitee.com/olupengo/psopt.git
git@gitee.com:olupengo/psopt.git
olupengo
psopt
psopt
master

搜索帮助