source: trunk/.travis.yml @ 2978

Last change on this file since 2978 was 2978, checked in by unxusr, 6 months ago

increase verbosity to check for configure results

File size: 7.2 KB
Line 
1language: cpp
2env:
3  global:
4    secure: FoPCwIlEKUUIwpSMGomm+Dfsv/Cp7ITqFVq5u++AAWp6WniX22NkkoPhCnbq3YxXrt0RQhK0P+pe6iJeQNgtm4seYWZO/pWj+frkW52kRWiEgMgKoAWx28vHVvcuqVr5lHAiezMoyrrKrmAJEznO0mTryDc1Ez3fzjSoIoY5r653TZEJNOJ5wU07oTVgGtTkKY9gsHM1s9fNu2ikmKrLQoe8VPJZpkSQPJp5YipghijYQUbeRyHnNMkxWZk34YCRTo2XIRiFBUKfC2efGLPvzGYjwAFYDHQUEKV4lVyg9S6e1BqoFH74vfgF2Vs6DADmWqImwC3RtrADh6wRpxSkADnCv+t3wc3mhuvYX74IDx6H0BFqYvWJwrkmXmnEQonBc/0db/mSiKfz6jp9i7vJl1XEtaYZ3Teic732ziOqUIbm4HjHCBDSqlC4mIlSDJnGAFvVjfZL1W1hbkUPaG1KpmEZ5hiE7mu2kf3DkFjiBdwBSTs5wlgmqmzHvvtAg1P6TdkR2uyIUCCkX4628sWzhfIfTV9XrophJw7jS+PD8dy5tdJclZvIXlw6JbiDPRpF7Vm6orDk/cY5sQ6Sv4+CZd0ml3AaSblR8JkXLCUu21/c2jxJwewYD7MFGNLcLueAK7pycZ9o3YII2zHlfuPRNAWEjS2AjgjCnk52+xhIDW4=
5matrix:
6  include:
7    - os: linux
8      env: BUILD_STATIC=false
9      addons:
10        apt:
11          packages:
12            - gfortran
13            - libgfortran-5-dev
14            - liblapack-dev
15    - os: linux
16      dist: precise
17      env: BUILD_STATIC=false
18      addons:
19        apt:
20          sources:
21            - sourceline: 'ppa:ubuntu-toolchain-r/test'
22          packages:
23            - gcc-8
24            - g++-8
25            - gfortran-8
26            - libgfortran-8-dev
27            - liblapack-dev
28            - libamd2.2.0
29            - libcholmod1.7.1
30            - libsuitesparse-dev
31      install:
32        - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
33        - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
34        - sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 90
35        - sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-8 90
36    - os: linux
37      dist: precise
38      env: BUILD_STATIC=false
39      addons:
40        apt:
41          sources:
42            - sourceline: 'ppa:ubuntu-toolchain-r/test'
43          packages:
44            - gcc-9
45            - g++-9
46            - gfortran-9
47            - libgfortran-9-dev
48            - liblapack-dev
49            - libamd2.2.0
50            - libcholmod1.7.1
51            - libsuitesparse-dev
52      install:
53        - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
54        - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
55        - sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 90
56        - sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 90
57    - os: linux
58      dist: bionic
59      env: BUILD_STATIC=true
60      addons:
61        apt:
62          packages:
63            - gfortran
64            - liblapack-dev
65    - os: osx
66      osx_image: xcode11
67      env: OSX=10.14 CC=gcc CXX=g++ BUILD_STATIC=false
68      compiler: clang
69    - os: osx
70      osx_image: xcode11
71      env: OSX=10.14  BUILD_STATIC=false
72      compiler: clang
73    - os: osx
74      osx_image: xcode10
75      env: OSX=10.13  BUILD_STATIC=false
76      compiler: clang
77
78before_script:
79  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
80  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ x`brew list | fgrep bash` != x'bash' ]; then brew install bash; fi; fi
81  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ x`brew list | fgrep gcc` != x'gcc' ]; then brew install gcc; fi; fi
82  - if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc" ]]; then export CC=gcc-9 ; export CXX=g++-9 ; $CC --version; $CXX --version; gfortran --version; fi
83  - if [[ "$TRAVIS_OS_NAME $CC" == "osx clang" ]]; then  export PLATFORM=osx$OSX-x86_64-clang`clang -dumpversion`; fi
84  - if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc-9" ]]; then  export PLATFORM=osx$OSX-x86_64-gcc`gcc-9 -dumpversion`; fi
85  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then  export PLATFORM=linux-x86_64-gcc`gcc -dumpversion`; fi
86  - cd ..
87  - wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
88  - export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG
89  - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
90  - bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update
91
92script:
93  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "true" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=4 --enable-relocatable --fully-static --with-lapack="-llapack -lblas -lgfortran -lquadmath -lm"; fi
94  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=4 --tests main --enable-relocatable; fi
95  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=3 --tests none --enable-relocatable; fi
96
97after_script:
98  - if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=master; else export VERSION=`echo $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
99  - if [ $BUILD_STATIC = "false" ]; then export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz; else export TGZ_FILE=$PROJECT-$VERSION-static-$PLATFORM.tgz; fi
100  - echo $TGZ_FILE
101  - cp README.md LICENSE AUTHORS dist
102  - cd dist
103  - |
104    if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_DIST" == "precise" ]];
105    then
106      # adding required libraries
107      cp /usr/lib/lapack/liblapack.so.3gf lib/
108      cp /usr/lib/x86_64-linux-gnu/libgfortran.so.5 lib/
109      cp /usr/lib/x86_64-linux-gnu/libgfortran.so.3 lib/
110      cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 lib/
111      cp /usr/lib/libblas/libblas.so.3gf lib/
112      cp /lib/x86_64-linux-gnu/libreadline.so.6 lib/
113      cp /lib/x86_64-linux-gnu/libbz2.so.1.0 lib/
114      cp /lib/x86_64-linux-gnu/libtinfo.so.5 lib/
115      cp /usr/lib/x86_64-linux-gnu/libquadmath.so.0 lib/
116      cp /usr/lib/libcholmod.so.1.7.1 lib/
117      cp /usr/lib/libamd.so.2.2.0 lib/
118      cp /usr/lib/libcolamd.so.2.7.1 lib/
119
120      # CBC Launcher script
121      mv bin/cbc bin/cbc.bin
122      echo "#! /bin/sh"
123      echo "# Wrapper to launch CBC and set the library path in Linux" > bin/cbc
124      echo "SCRIPTPATH=\"\$( cd \"\$(dirname \"\$0\")\" >/dev/null 2>&1 ; pwd -P )\"" >> bin/cbc
125      echo "LIB_PATH=\$(echo \$SCRIPTPATH | sed -e 's/\/bin\$/\/lib/g')" >> bin/cbc
126      echo "LIB_PATH=\$(echo \$LIB_PATH | sed -e 's/\/bin\/\$/\/lib/g')" >> bin/cbc
127      echo "OLD_LP=\$LD_LIBRARY_PATH" >> bin/cbc
128      echo "export LD_LIBRARY_PATH=\$LIB_PATH:\$LD_LIBRARY_PATH" >> bin/cbc
129      echo "\${SCRIPTPATH}/cbc.bin \$@" >> bin/cbc
130      echo "export LD_LIBRARY_PATH=\$OLD_LP" >> bin/cbc
131      echo "exit \$?" >> bin/cbc
132      chmod a+rx bin/cbc
133      # CLP Launcher script
134      mv bin/clp bin/clp.bin
135      echo "#! /bin/sh"
136      echo "# Wrapper to launch CLP and set the library path in Linux" > bin/clp
137      echo "SCRIPTPATH=\"\$( cd \"\$(dirname \"\$0\")\" >/dev/null 2>&1 ; pwd -P )\"" >> bin/clp
138      echo "LIB_PATH=\$(echo \$SCRIPTPATH | sed -e 's/\/bin\$/\/lib/g')" >> bin/clp
139      echo "LIB_PATH=\$(echo \$LIB_PATH | sed -e 's/\/bin\/\$/\/lib/g')" >> bin/clp
140      echo "OLD_LP=\$LD_LIBRARY_PATH" >> bin/clp
141      echo "export LD_LIBRARY_PATH=\$LIB_PATH:\$LD_LIBRARY_PATH" >> bin/clp
142      echo "\${SCRIPTPATH}/clp.bin \$@" >> bin/clp
143      echo "export LD_LIBRARY_PATH=\$OLD_LP" >> bin/clp
144      echo "exit \$?" >> bin/clp
145      chmod a+rx bin/clp
146    fi
147  - tar -czvf $TGZ_FILE lib/* bin/* include/* share/* README.md LICENSE AUTHORS
148  - curl -T $TGZ_FILE -utkralphs:$BINTRAY_API -H "X-Bintray-Publish:1" -H "X-Bintray-Override:1" https://api.bintray.com/content/coin-or/download/$PROJECT/$VERSION/$TGZ_FILE
149
150after_failure:
151  - find .. -name config.log -exec tail -n 1000 {} \;
Note: See TracBrowser for help on using the repository browser.