source: trunk/.travis.yml @ 2965

Last change on this file since 2965 was 2965, checked in by unxusr, 4 months ago

search lapack path

File size: 5.3 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      install:
29        - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
30        - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
31        - sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 90
32        - sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-8 90
33    - os: linux
34      dist: bionic
35      env: BUILD_STATIC=false
36      addons:
37        apt:
38          packages:
39            - gfortran
40            - libgfortran-8-dev
41            - liblapack-dev
42    - os: linux
43      dist: bionic
44      env: BUILD_STATIC=true
45      addons:
46        apt:
47          packages:
48            - gfortran
49            - liblapack-dev
50    - os: osx
51      osx_image: xcode11
52      env: OSX=10.14 CC=gcc CXX=g++ BUILD_STATIC=false
53      compiler: clang
54    - os: osx
55      osx_image: xcode11
56      env: OSX=10.14  BUILD_STATIC=false
57      compiler: clang
58    - os: osx
59      osx_image: xcode10
60      env: OSX=10.13  BUILD_STATIC=false
61      compiler: clang
62
63before_script:
64  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
65  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ x`brew list | fgrep bash` != x'bash' ]; then brew install bash; fi; fi
66  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ x`brew list | fgrep gcc` != x'gcc' ]; then brew install gcc; fi; fi
67  - if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc" ]]; then export CC=gcc-9 ; export CXX=g++-9 ; $CC --version; $CXX --version; gfortran --version; fi
68  - if [[ "$TRAVIS_OS_NAME $CC" == "osx clang" ]]; then  export PLATFORM=osx$OSX-x86_64-clang`clang -dumpversion`; fi
69  - if [[ "$TRAVIS_OS_NAME $CC" == "osx gcc-9" ]]; then  export PLATFORM=osx$OSX-x86_64-gcc`gcc-9 -dumpversion`; fi
70  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then  export PLATFORM=linux-x86_64-gcc`gcc -dumpversion`; fi
71  - cd ..
72  - wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
73  - export PROJECT_URL=https://github.com/$TRAVIS_REPO_SLUG
74  - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
75  - bash ./coinbrew fetch $PROJECT_URL:$TRAVIS_BRANCH --no-prompt --skip-update
76
77script:
78  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "true" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=3 --enable-relocatable --fully-static --with-lapack="-llapack -lblas -lgfortran -lquadmath -lm"; fi
79  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=3 --tests main --enable-relocatable; fi
80  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=3 --tests none --enable-relocatable; fi
81
82after_script:
83  - if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=master; else export VERSION=`echo $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
84  - if [ $BUILD_STATIC = "false" ]; then export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz; else export TGZ_FILE=$PROJECT-$VERSION-static-$PLATFORM.tgz; fi
85  - echo $TGZ_FILE
86  - cp README.md LICENSE AUTHORS dist
87  - cd dist
88  - find /usr | grep -i liblapack.so
89  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then cp /usr/lib/lapack/liblapack.so.3gf lib/ 2>/dev/null || : ; fi
90  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then cp /usr/lib/x86_64-linux-gnu/libgfortran.so.5 lib/ 2>/dev/null || : ; fi
91  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then cp /usr/lib/x86_64-linux-gnu/libgfortran.so.3 lib/ 2>/dev/null || : ; fi
92  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 lib/ 2>/dev/null || : ; fi
93  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then cp /usr/lib/libblas/libblas.so.3gf lib/ 2>/dev/null || : ; fi
94  - tar -czvf $TGZ_FILE lib/* bin/* include/* share/* README.md LICENSE AUTHORS
95  - 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
96
97after_failure:
98  - find .. -name config.log -exec tail -n 1000 {} \;
Note: See TracBrowser for help on using the repository browser.