Changeset 2996 for trunk/.travis.yml


Ignore:
Timestamp:
Apr 18, 2020 10:38:00 AM (5 months ago)
Author:
unxusr
Message:

try to include debug build in linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r2989 r2996  
    66  include:
    77    - os: linux
    8       env: BUILD_STATIC=false
     8      env: BUILD_STATIC=false DEBUG=false
    99      addons:
    1010        apt:
     
    1515    - os: linux
    1616      dist: precise
    17       env: BUILD_STATIC=false
     17      env: BUILD_STATIC=false DEBUG=false
    1818      addons:
    1919        apt:
     
    3737    - os: linux
    3838      dist: precise
    39       env: BUILD_STATIC=false
     39      env: BUILD_STATIC=false DEBUG=false
     40      addons:
     41        apt:
     42          sources:
     43            - sourceline: 'ppa:ubuntu-toolchain-r/test'
     44          packages:
     45            - gcc-9
     46            - g++-9
     47            - gfortran-9
     48            - libgfortran-9-dev
     49            - liblapack-dev
     50            - libamd2.2.0
     51            - libcholmod1.7.1
     52            - libsuitesparse-dev
     53            - chrpath
     54      install:
     55        - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90
     56        - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90
     57        - sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 90
     58        - sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 90
     59    - os: linux
     60      dist: precise
     61      env: BUILD_STATIC=true DEBUG=true
    4062      addons:
    4163        apt:
     
    5981    - os: linux
    6082      dist: bionic
    61       env: BUILD_STATIC=true
     83      env: BUILD_STATIC=true DEBUG=false
    6284      addons:
    6385        apt:
     
    6789    - os: osx
    6890      osx_image: xcode11
    69       env: OSX=10.14 CC=gcc CXX=g++ BUILD_STATIC=false
     91      env: OSX=10.14 CC=gcc CXX=g++ BUILD_STATIC=false DEBUG=false
    7092      compiler: clang
    7193    - os: osx
    7294      osx_image: xcode11
    73       env: OSX=10.14  BUILD_STATIC=false
     95      env: OSX=10.14  BUILD_STATIC=false DEBUG=false
    7496      compiler: clang
    7597    - os: osx
    7698      osx_image: xcode10
    77       env: OSX=10.13  BUILD_STATIC=false
     99      env: OSX=10.13  BUILD_STATIC=false DEBUG=false
    78100      compiler: clang
    79101
     
    93115
    94116script:
    95   - 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
    96   - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=4 --tests main --enable-relocatable; fi
     117  - export DBGC=""
     118  - if [[ $DEBUG == "true" ]]; then export DBGC="--enable-debug"; fi
     119  - if [[ $DEBUG == "true" ]]; then export export CXXFLAGS="-Og -g"; fi
     120  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "true" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=4 --enable-relocatable --fully-static $DBGC --with-lapack="-llapack -lblas -lgfortran -lquadmath -lm"; fi
     121  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $BUILD_STATIC == "false" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=4 --tests main --enable-relocatable $DBGC; fi
    97122  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash ./coinbrew build $PROJECT --no-prompt --verbosity=3 --tests none --enable-relocatable; fi
    98123
    99124after_script:
     125  - export DBGN=""
     126  - if [[ $DEBUG == "true" ]]; then export DBGN="-dbg"; fi
    100127  - if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=master; else export VERSION=`echo $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
    101   - if [ $BUILD_STATIC = "false" ]; then export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz; else export TGZ_FILE=$PROJECT-$VERSION-static-$PLATFORM.tgz; fi
     128  - if [ $BUILD_STATIC = "false" ]; then export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM$DBGN.tgz; else export TGZ_FILE=$PROJECT-$VERSION-static-$PLATFORM$DBGN.tgz; fi
    102129  - echo $TGZ_FILE
    103130  - cp README.md LICENSE AUTHORS dist
Note: See TracChangeset for help on using the changeset viewer.