Changeset 1589


Ignore:
Timestamp:
Oct 31, 2018 12:12:36 PM (3 months ago)
Author:
tkr
Message:

Updating Travis and Appveyor to new build script and new build images

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r1575 r1589  
    1212            - gfortran
    1313    - os: osx
    14       osx_image: xcode8.2
     14      osx_image: xcode10
     15      env: OSX=10.13
     16      compiler: clang
     17    - os: osx
     18      osx_image: xcode9.2
    1519      env: OSX=10.12
    1620      compiler: clang
     
    1822      osx_image: xcode8
    1923      env: OSX=10.11
    20       compiler: clang
    21     - os: osx
    22       osx_image: xcode6.4
    23       env: OSX=10.10
    2424      compiler: clang
    2525  allow_failures:
     
    3030  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install bash gcc; brew link --overwrite gcc; gfortran --version; fi
    3131  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PLATFORM=linux-x86_64-gcc`gcc -dumpversion`; fi
    32   - git clone https://github.com/coin-or-tools/BuildTools
    33   - bash BuildTools/get.dependencies.sh fetch > /dev/null
     32  - git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN
     33  - cd COIN
     34  - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
     35  - bash ./coin.install.sh fetch --no-prompt --main-proj=$PROJECT > /dev/null
    3436
    3537script:
    36   - bash BuildTools/get.dependencies.sh build --verbosity=2 --test
     38  - bash ./coin.install.sh build --no-prompt --main-proj=$PROJECT --verbosity=2 --test
    3739
    3840after_script:
    3941  - if [ $TRAVIS_BRANCH = "master" ]; then export VERSION=trunk; else export VERSION=`echo $TRAVIS_BRANCH | cut -d "/" -f 2`; fi
    40   - export PROJECT=`echo $TRAVIS_REPO_SLUG | cut -d "/" -f 2`
    4142  - export TGZ_FILE=$PROJECT-$VERSION-$PLATFORM.tgz
    4243  - echo $TGZ_FILE
    43   - tar -czvf $TGZ_FILE build/lib/* build/bin/* build/include/* build/share/* README.md INSTALL LICENSE Dip/AUTHORS
     44  - tar -czvf $TGZ_FILE build/lib/* build/bin/* build/include/* build/share/* $PROJECT/README.md $PROJECT/INSTALL $PROJECT/LICENSE $PROJECT/$PROJECT/AUTHORS
    4445  - 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
  • trunk/appveyor.yml

    r1575 r1589  
     1#init:
     2#  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
     3
    14platform:
    25  - x64
     
    811    BINTRAY_USERNAME: tkralphs
    912  matrix:
    10     - ARCH: win32-msvc9
     13    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
     14      ARCH: win32-msvc9
    1115      HOST_ARCH_ARG: --enable-msvc=MD
    1216      ADD_PATH: /mingw64/bin
    13     - ARCH: win32-msvc12
     17    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
     18      ARCH: win32-msvc14
    1419      HOST_ARCH_ARG: --enable-msvc
    1520      ADD_PATH: /mingw64/bin
    16     - ARCH: win32-msvc14
     21    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
     22      ARCH: win32-msvc15
    1723      HOST_ARCH_ARG: --enable-msvc
    1824      ADD_PATH: /mingw64/bin
    19     - ARCH: x86_64-w64-mingw32
     25    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
     26      ARCH: x86_64-w64-mingw32
    2027      HOST_ARCH_ARG: --host=x86_64-w64-mingw32
    2128      ADD_PATH: /mingw64/bin
    22     - ARCH: i686-w64-mingw32
     29    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
     30      ARCH: i686-w64-mingw32
    2331      HOST_ARCH_ARG: --host=i686-w64-mingw32
    2432      ADD_PATH: /mingw32/bin
    2533
    2634install:
    27   - for /f "delims=" %%i in ('C:\msys64\usr\bin\bash -lc "if [ $APPVEYOR_REPO_BRANCH = 'master' ]; then echo 'trunk'; else echo $APPVEYOR_REPO_BRANCH | cut -d "/" -f 2; fi"') do set VERSION=%%i
    28   - echo %VERSION%
    2935  - IF %ARCH%==win32-msvc9 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat")
    30   - IF %ARCH%==win32-msvc12 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat")
    3136  - IF %ARCH%==win32-msvc14 (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat")
     37  - IF %ARCH%==win32-msvc15 (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 8.1)
    3238  - C:\msys64\usr\bin\bash -lc ""
    3339
    3440build_script:
    35   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone https://github.com/coin-or-tools/BuildTools"
    36   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; BuildTools/get.dependencies.sh fetch --no-third-party"
    37   - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; export PATH=$ADD_PATH:$PATH; BuildTools/get.dependencies.sh build --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity=2 --test"
     41  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; git clone https://github.com/coin-or/COIN-OR-OptimizationSuite COIN"
     42  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER/COIN; ./coin.install.sh fetch --no-prompt --main-proj=%APPVEYOR_PROJECT_NAME% --no-third-party"
     43  - C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER/COIN; export PATH=$ADD_PATH:$PATH; ./coin.install.sh build --no-prompt --main-proj=%APPVEYOR_PROJECT_NAME% --no-third-party --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity=2 --test"
    3844
    3945after_build:
    40   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\bin
    41   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\include
    42   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\lib
    43   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\build\share
    44   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\README.md
    45   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\LICENSE
    46   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\INSTALL
    47   - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\Dip\AUTHORS
     46  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\bin
     47  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\include
     48  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\lib
     49  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\build\share
     50  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\README.md
     51  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\LICENSE
     52  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\INSTALL
     53  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip %APPVEYOR_BUILD_FOLDER%\COIN\%APPVEYOR_PROJECT_NAME%\%APPVEYOR_PROJECT_NAME%\AUTHORS
    4854  - curl -T %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip -utkralphs:%BINTRAY_API% -H "X-Bintray-Publish:1" -H "X-Bintray-Override:1" https://api.bintray.com/content/coin-or/download/%APPVEYOR_PROJECT_NAME%/%VERSION%/%APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip
    4955
     56#on_finish:
     57#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
Note: See TracChangeset for help on using the changeset viewer.