From 0058a263424b8f56774eb2ef541fd13db48181eb Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 17:17:31 +0200 Subject: [PATCH 1/9] Manylinux attempt --- .circleci/config.yml | 88 ++++++------ .travis.yml | 128 +++++++++-------- appveyor.yml | 302 ++++++++++++++++++++-------------------- tools/install_docker.sh | 88 ++---------- 4 files changed, 268 insertions(+), 338 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4dfc7ea49..6987611b0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,44 +1,44 @@ -version: 2 - -jobs: - bionic_gcc7_coverage: - docker: - - image: circleci/buildpack-deps:bionic - steps: - - checkout - - run: - name: Build and test - command: bash ./tools/circleci_bionic_gcc7_coverage.sh - cosmic_gcc8_asan: - docker: - - image: circleci/buildpack-deps:cosmic - steps: - - checkout - - run: - name: Build and test - command: bash ./tools/circleci_cosmic_gcc8_asan.sh - cosmic_clang7: - docker: - - image: circleci/buildpack-deps:cosmic - steps: - - checkout - - run: - name: Build and test - command: bash ./tools/circleci_cosmic_clang7.sh - bionic_clang6_release: - docker: - - image: circleci/buildpack-deps:bionic - steps: - - checkout - - run: - name: Build and test - command: bash ./tools/circleci_bionic_clang6_release.sh - -workflows: - version: 2 - all_builds: - jobs: - - bionic_gcc7_coverage - - cosmic_gcc8_asan - - cosmic_clang7 - - bionic_clang6_release +#version: 2 +# +#jobs: +# bionic_gcc7_coverage: +# docker: +# - image: circleci/buildpack-deps:bionic +# steps: +# - checkout +# - run: +# name: Build and test +# command: bash ./tools/circleci_bionic_gcc7_coverage.sh +# cosmic_gcc8_asan: +# docker: +# - image: circleci/buildpack-deps:cosmic +# steps: +# - checkout +# - run: +# name: Build and test +# command: bash ./tools/circleci_cosmic_gcc8_asan.sh +# cosmic_clang7: +# docker: +# - image: circleci/buildpack-deps:cosmic +# steps: +# - checkout +# - run: +# name: Build and test +# command: bash ./tools/circleci_cosmic_clang7.sh +# bionic_clang6_release: +# docker: +# - image: circleci/buildpack-deps:bionic +# steps: +# - checkout +# - run: +# name: Build and test +# command: bash ./tools/circleci_bionic_clang6_release.sh +# +#workflows: +# version: 2 +# all_builds: +# jobs: +# - bionic_gcc7_coverage +# - cosmic_gcc8_asan +# - cosmic_clang7 +# - bionic_clang6_release diff --git a/.travis.yml b/.travis.yml index 1d214f88d..96051ad23 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,81 +16,77 @@ env: matrix: include: - - env: PAGMO_BUILD="DebugGCC48" - dist: trusty - compiler: gcc - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-4.8 - - g++-4.8 - - binutils-gold - - env: PAGMO_BUILD="ReleaseGCC48" - dist: trusty - compiler: gcc - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-4.8 - - g++-4.8 - - binutils-gold - - env: PAGMO_BUILD="Python37" - dist: trusty - compiler: gcc - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-4.8 - - g++-4.8 - - env: PAGMO_BUILD="Python27" - dist: trusty - compiler: gcc - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-4.8 - - g++-4.8 - - env: PAGMO_BUILD="OSXDebug" - os: osx - osx_image: xcode6.4 - - env: PAGMO_BUILD="OSXRelease" - os: osx - osx_image: xcode6.4 - - env: PAGMO_BUILD="OSXPython37" - os: osx - osx_image: xcode6.4 - - env: PAGMO_BUILD="OSXPython27" - os: osx - osx_image: xcode6.4 - - env: PAGMO_BUILD="manylinux64Py27m" DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" + #- env: PAGMO_BUILD="DebugGCC48" + # dist: trusty + # compiler: gcc + # os: linux + # addons: + # apt: + # sources: + # - ubuntu-toolchain-r-test + # packages: + # - gcc-4.8 + # - g++-4.8 + # - binutils-gold + #- env: PAGMO_BUILD="ReleaseGCC48" + # dist: trusty + # compiler: gcc + # os: linux + # addons: + # apt: + # sources: + # - ubuntu-toolchain-r-test + # packages: + # - gcc-4.8 + # - g++-4.8 + # - binutils-gold + #- env: PAGMO_BUILD="Python37" + # dist: trusty + # compiler: gcc + # os: linux + # addons: + # apt: + # sources: + # - ubuntu-toolchain-r-test + # packages: + # - gcc-4.8 + # - g++-4.8 + #- env: PAGMO_BUILD="Python27" + # dist: trusty + # compiler: gcc + # os: linux + # addons: + # apt: + # sources: + # - ubuntu-toolchain-r-test + # packages: + # - gcc-4.8 + # - g++-4.8 + #- env: PAGMO_BUILD="OSXDebug" + # os: osx + # osx_image: xcode6.4 + #- env: PAGMO_BUILD="OSXRelease" + # os: osx + # osx_image: xcode6.4 + #- env: PAGMO_BUILD="OSXPython37" + # os: osx + # osx_image: xcode6.4 + #- env: PAGMO_BUILD="OSXPython27" + # os: osx + # osx_image: xcode6.4 + - env: PYKEP_BUILD="manylinux64Py37" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker - - env: PAGMO_BUILD="manylinux64Py27mu" DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" + - env: PYKEP_BUILD="manylinux64Py36" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker - - env: PAGMO_BUILD="manylinux64Py37" DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" + - env: PYKEP_BUILD="manylinux64Py27" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker - - env: PAGMO_BUILD="manylinux64Py36" DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" - sudo: required - services: - - docker - - env: PAGMO_BUILD="manylinux64Py35" DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" + - env: PYKEP_BUILD="manylinux64Py27mu" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker diff --git a/appveyor.yml b/appveyor.yml index 0359fea22..ff5849db0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,154 +1,154 @@ -environment: - TWINE_PASSWORD: - secure: fqy2DKVE2zM+97vNPB8xgw3ae3SDPkL/T8RvC6s4ncY= - matrix: - - BUILD_TYPE: "MSVC_64_Debug" - COMPILER: MSVC15 - PLATFORM: "x64" - - BUILD_TYPE: "MSVC_64_Python37" - COMPILER: MSVC15 - PLATFORM: "x64" - - BUILD_TYPE: "MSVC_64_Python36" - COMPILER: MSVC15 - PLATFORM: "x64" - - BUILD_TYPE: "MinGW_64_Debug" - - BUILD_TYPE: "MinGW_64_Python27" - - BUILD_TYPE: "MinGW_64_Python35" - - BUILD_TYPE: "MinGW_64_Python36" - global: - PLATFORMTOOLSET: "v140" - -install: -- if [%BUILD_TYPE%]==[MSVC_64_Debug] set PATH=C:\Miniconda36-x64\Scripts;%PATH% -- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda config --add channels conda-forge --force -# NOTE: we clean and update the conda env due to some apparent caching issues in the -# conda version installed on appveyor. This is necessary sometimes, depending on the -# current state of conda. -# - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda clean --all -y -# - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update conda -y -- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update --all -y -# NOTE: we are installing some extra packages here (the same as in the python builds, even though we don't -# use Python here), because otherwise there's some error arising when trying to detect the nlopt installation. -# Not clear why that's the case, hopefully it's temporary. -- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel -# NOTE: need to use "call" because otherwise it won't work within an if block. -- if [%BUILD_TYPE%]==[MSVC_64_Debug] call activate pagmo - -- if [%BUILD_TYPE%]==[MSVC_64_Python37] set PATH=C:\Miniconda37-x64\Scripts;%PATH% -- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda config --add channels conda-forge --force -# - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda clean --all -y -# - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update conda -y -- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update --all -y -- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda create -y --name pagmo python=3.7 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel -- if [%BUILD_TYPE%]==[MSVC_64_Python37] call activate pagmo - -- if [%BUILD_TYPE%]==[MSVC_64_Python36] set PATH=C:\Miniconda36-x64\Scripts;%PATH% -- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda config --add channels conda-forge --force -# - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda clean --all -y -# - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update conda -y -- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update --all -y -- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel -- if [%BUILD_TYPE%]==[MSVC_64_Python36] call activate pagmo - -# Rename sh.exe as sh.exe in PATH interferes with MinGW. -- if [%BUILD_TYPE%]==[MinGW_64_Debug] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" - -- if [%BUILD_TYPE%]==[MinGW_64_Python27] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" -- if [%BUILD_TYPE%]==[MinGW_64_Python35] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" -- if [%BUILD_TYPE%]==[MinGW_64_Python36] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" - -build_script: -- if [%BUILD_TYPE%]==[MSVC_64_Debug] mkdir build -- if [%BUILD_TYPE%]==[MSVC_64_Debug] cd build -- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_TESTS=YES -DPAGMO_BUILD_TUTORIALS=YES -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. -- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake --build . --config Release --target install - -- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pagmo -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pagmo -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pygmo -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pygmo -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install - -- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pagmo -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pagmo -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pygmo -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pygmo -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install - -- if [%BUILD_TYPE%]==[MinGW_64_Debug] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py - -- if [%BUILD_TYPE%]==[MinGW_64_Python27] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py -- if [%BUILD_TYPE%]==[MinGW_64_Python35] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py -- if [%BUILD_TYPE%]==[MinGW_64_Python36] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py - -test_script: -- if [%BUILD_TYPE%]==[MSVC_64_Debug] ctest --output-on-failure - -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd tools -- if [%BUILD_TYPE%]==[MSVC_64_Python37] Powershell.exe -File start_ip_cluster.ps1 -- if [%BUILD_TYPE%]==[MSVC_64_Python37] timeout 20 -- if [%BUILD_TYPE%]==[MSVC_64_Python37] python -c "import pygmo; pygmo.test.run_test_suite(1)" -- if [%BUILD_TYPE%]==[MSVC_64_Python37] python travis_additional_tests.py -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd ap_examples -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd uda_basic -- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test1.py -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd udp_basic -- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test2.py - -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd tools -- if [%BUILD_TYPE%]==[MSVC_64_Python36] Powershell.exe -File start_ip_cluster.ps1 -- if [%BUILD_TYPE%]==[MSVC_64_Python36] timeout 20 -- if [%BUILD_TYPE%]==[MSVC_64_Python36] python -c "import pygmo; pygmo.test.run_test_suite(1)" -- if [%BUILD_TYPE%]==[MSVC_64_Python36] python travis_additional_tests.py -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ap_examples -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd uda_basic -- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test1.py -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd udp_basic -- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test2.py - -artifacts: - - path: build\wheel\dist - name: wheels - -notifications: - - provider: Webhook - url: https://webhooks.gitter.im/e/1a3742192bd3f7e6d8e2 +#environment: +# TWINE_PASSWORD: +# secure: fqy2DKVE2zM+97vNPB8xgw3ae3SDPkL/T8RvC6s4ncY= +# matrix: +# - BUILD_TYPE: "MSVC_64_Debug" +# COMPILER: MSVC15 +# PLATFORM: "x64" +# - BUILD_TYPE: "MSVC_64_Python37" +# COMPILER: MSVC15 +# PLATFORM: "x64" +# - BUILD_TYPE: "MSVC_64_Python36" +# COMPILER: MSVC15 +# PLATFORM: "x64" +# - BUILD_TYPE: "MinGW_64_Debug" +# - BUILD_TYPE: "MinGW_64_Python27" +# - BUILD_TYPE: "MinGW_64_Python35" +# - BUILD_TYPE: "MinGW_64_Python36" +# global: +# PLATFORMTOOLSET: "v140" +# +#install: +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] set PATH=C:\Miniconda36-x64\Scripts;%PATH% +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda config --add channels conda-forge --force +## NOTE: we clean and update the conda env due to some apparent caching issues in the +## conda version installed on appveyor. This is necessary sometimes, depending on the +## current state of conda. +## - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda clean --all -y +## - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update conda -y +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update --all -y +## NOTE: we are installing some extra packages here (the same as in the python builds, even though we don't +## use Python here), because otherwise there's some error arising when trying to detect the nlopt installation. +## Not clear why that's the case, hopefully it's temporary. +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel +## NOTE: need to use "call" because otherwise it won't work within an if block. +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] call activate pagmo +# +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] set PATH=C:\Miniconda37-x64\Scripts;%PATH% +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda config --add channels conda-forge --force +## - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda clean --all -y +## - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update conda -y +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update --all -y +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda create -y --name pagmo python=3.7 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] call activate pagmo +# +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] set PATH=C:\Miniconda36-x64\Scripts;%PATH% +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda config --add channels conda-forge --force +## - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda clean --all -y +## - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update conda -y +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update --all -y +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] call activate pagmo +# +## Rename sh.exe as sh.exe in PATH interferes with MinGW. +#- if [%BUILD_TYPE%]==[MinGW_64_Debug] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" +# +#- if [%BUILD_TYPE%]==[MinGW_64_Python27] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" +#- if [%BUILD_TYPE%]==[MinGW_64_Python35] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" +#- if [%BUILD_TYPE%]==[MinGW_64_Python36] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" +# +#build_script: +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] mkdir build +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] cd build +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_TESTS=YES -DPAGMO_BUILD_TUTORIALS=YES -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake --build . --config Release --target install +# +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pagmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pagmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pygmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pygmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install +# +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pagmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pagmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pygmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pygmo +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install +# +#- if [%BUILD_TYPE%]==[MinGW_64_Debug] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py +# +#- if [%BUILD_TYPE%]==[MinGW_64_Python27] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py +#- if [%BUILD_TYPE%]==[MinGW_64_Python35] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py +#- if [%BUILD_TYPE%]==[MinGW_64_Python36] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py +# +#test_script: +#- if [%BUILD_TYPE%]==[MSVC_64_Debug] ctest --output-on-failure +# +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd tools +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] Powershell.exe -File start_ip_cluster.ps1 +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] timeout 20 +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python -c "import pygmo; pygmo.test.run_test_suite(1)" +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python travis_additional_tests.py +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd ap_examples +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd uda_basic +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test1.py +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd udp_basic +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test2.py +# +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd tools +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] Powershell.exe -File start_ip_cluster.ps1 +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] timeout 20 +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python -c "import pygmo; pygmo.test.run_test_suite(1)" +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python travis_additional_tests.py +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ap_examples +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd uda_basic +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test1.py +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd udp_basic +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test2.py +# +#artifacts: +# - path: build\wheel\dist +# name: wheels +# +#notifications: +# - provider: Webhook +# url: https://webhooks.gitter.im/e/1a3742192bd3f7e6d8e2 # Enable this to be able to login to the build worker. You can use the # `remmina` program in Ubuntu, use the login information that the line below diff --git a/tools/install_docker.sh b/tools/install_docker.sh index 63c5fb851..a4b430910 100644 --- a/tools/install_docker.sh +++ b/tools/install_docker.sh @@ -6,97 +6,31 @@ set -x # Exit on error. set -e -CMAKE_VERSION="3.12.0" -EIGEN3_VERSION="3.3.4" -BOOST_VERSION="1.67.0" -NLOPT_VERSION="2.4.2" -TBB_VERSION="2019_U5" - if [[ ${PAGMO_BUILD} == *37 ]]; then PYTHON_DIR="cp37-cp37m" + BOOST_PYTHON_LIBRARY_NAME="libboost_python37.so" + PYTHON_VERSION="37" elif [[ ${PAGMO_BUILD} == *36 ]]; then PYTHON_DIR="cp36-cp36m" -elif [[ ${PAGMO_BUILD} == *35 ]]; then - PYTHON_DIR="cp35-cp35m" + BOOST_PYTHON_LIBRARY_NAME="libboost_python36.so" + PYTHON_VERSION="36" elif [[ ${PAGMO_BUILD} == *27mu ]]; then PYTHON_DIR="cp27-cp27mu" -elif [[ ${PAGMO_BUILD} == *27m ]]; then + BOOST_PYTHON_LIBRARY_NAME="libboost_python27mu.so" + PYTHON_VERSION="27" +elif [[ ${PAGMO_BUILD} == *27 ]]; then PYTHON_DIR="cp27-cp27m" + BOOST_PYTHON_LIBRARY_NAME="libboost_python27.so" + PYTHON_VERSION="27" else - echo "Invalid build type: ${PAGMO_BUILD}" + echo "Invalid build type: ${PYKEP_BUILD}" exit 1 fi -# HACK: for python 3.x, the include directory -# is called 'python3.xm' rather than just 'python3.x'. -# This confuses the build system of Boost.Python, thus -# we create a symlink to 'python3.x'. -cd /opt/python/${PYTHON_DIR}/include -PY_INCLUDE_DIR_NAME=`ls` -# If the include dir ends with 'm', create a symlink -# without the 'm'. -if [[ $PY_INCLUDE_DIR_NAME == *m ]]; then - ln -s $PY_INCLUDE_DIR_NAME `echo $PY_INCLUDE_DIR_NAME|sed 's/.$//'` -fi - cd mkdir install cd install -# TBB -curl -L https://github.com/01org/tbb/archive/${TBB_VERSION}.tar.gz > tbb.tar.gz -tar xvf tbb.tar.gz > /dev/null 2>&1 -cd tbb-${TBB_VERSION} -make > /dev/null 2>&1 -cd build -mv *_release release -mv *_debug debug -cd release -cp libtbb* /usr/lib64/ -cd ../debug -cp libtbb* /usr/lib64/ -ldconfig -cd ../../include/ -cp -r tbb /usr/local/include/ -cd ../../ - -# Install CMake -curl -L https://github.com/Kitware/CMake/archive/v${CMAKE_VERSION}.tar.gz > v${CMAKE_VERSION} -tar xzf v${CMAKE_VERSION} > /dev/null 2>&1 -cd CMake-${CMAKE_VERSION}/ -./configure > /dev/null -gmake -j2 > /dev/null -gmake install > /dev/null -cd .. - -# Install Eigen -curl -L https://bitbucket.org/eigen/eigen/get/${EIGEN3_VERSION}.tar.gz > ${EIGEN3_VERSION} -tar xzf ${EIGEN3_VERSION} > /dev/null 2>&1 -cd eigen* -mkdir build -cd build -cmake ../ > /dev/null -make install > /dev/null -cd .. -cd .. - -# Boost (python, system, filesystem libs needed) -curl -L http://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_`echo ${BOOST_VERSION}|tr "." "_"`.tar.bz2 > boost_`echo ${BOOST_VERSION}|tr "." "_"`.tar.bz2 -tar xjf boost_`echo ${BOOST_VERSION}|tr "." "_"`.tar.bz2 -cd boost_`echo ${BOOST_VERSION}|tr "." "_"` -sh bootstrap.sh --with-python=/opt/python/${PYTHON_DIR}/bin/python > /dev/null -./bjam --toolset=gcc link=shared threading=multi cxxflags="-std=c++11" variant=release --with-python --with-serialization -j2 install > /dev/null -cd .. - -# NLopt -# NOTE: use alternative mirror as the one from the original webpage is faulty. -curl -L http://pkgs.fedoraproject.org/repo/pkgs/NLopt/NLopt-${NLOPT_VERSION}.tar.gz/d0b8f139a4acf29b76dbae69ade8ac54/NLopt-${NLOPT_VERSION}.tar.gz > NLopt-${NLOPT_VERSION}.tar.gz -tar xzf NLopt-${NLOPT_VERSION}.tar.gz -cd nlopt-${NLOPT_VERSION} -./configure --enable-shared --disable-static > /dev/null -make -j2 install > /dev/null -cd .. - # Python mandatory deps. /opt/python/${PYTHON_DIR}/bin/pip install cloudpickle numpy # Python optional deps. @@ -113,7 +47,7 @@ fi cd /pagmo2 mkdir build_pagmo cd build_pagmo -cmake ../ -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes -DCMAKE_BUILD_TYPE=Release +cmake ../ -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes -DPAGMO_WITH_IPOPT=yes -DCMAKE_BUILD_TYPE=Release make install cd ../build cmake -DCMAKE_BUILD_TYPE=Release -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no -DPYTHON_EXECUTABLE=/opt/python/${PYTHON_DIR}/bin/python ../; From be6fd4655bf315dcf1f5c7fa744c80eb71474157 Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 17:25:54 +0200 Subject: [PATCH 2/9] Manylinux attempt N2 --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 96051ad23..6d0219925 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,19 +74,19 @@ matrix: #- env: PAGMO_BUILD="OSXPython27" # os: osx # osx_image: xcode6.4 - - env: PYKEP_BUILD="manylinux64Py37" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" + - env: PAGMO_BUILD="manylinux64Py37" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker - - env: PYKEP_BUILD="manylinux64Py36" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" + - env: PAGMO_BUILD="manylinux64Py36" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker - - env: PYKEP_BUILD="manylinux64Py27" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" + - env: PAGMO_BUILD="manylinux64Py27" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker - - env: PYKEP_BUILD="manylinux64Py27mu" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" + - env: PAGMO_BUILD="manylinux64Py27mu" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: - docker From dba18da9942231868d1401dfb2f74b1ae93b4138 Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 17:31:11 +0200 Subject: [PATCH 3/9] Manylinux attempt N3 --- tools/install_docker.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/install_docker.sh b/tools/install_docker.sh index a4b430910..bf04230fa 100644 --- a/tools/install_docker.sh +++ b/tools/install_docker.sh @@ -28,7 +28,6 @@ else fi cd -mkdir install cd install # Python mandatory deps. From a85aba93add00bce9101908f138f452da1b0c8be Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 17:36:53 +0200 Subject: [PATCH 4/9] Manylinux attempt N4 --- tools/install_docker.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/install_docker.sh b/tools/install_docker.sh index bf04230fa..7f84fd575 100644 --- a/tools/install_docker.sh +++ b/tools/install_docker.sh @@ -46,10 +46,18 @@ fi cd /pagmo2 mkdir build_pagmo cd build_pagmo -cmake ../ -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes -DPAGMO_WITH_IPOPT=yes -DCMAKE_BUILD_TYPE=Release +cmake -DBoost_NO_BOOST_CMAKE=ON \ + -DPAGMO_WITH_EIGEN3=yes \ + -DPAGMO_WITH_NLOPT=yes \ + -DPAGMO_WITH_IPOPT=yes \ + -DCMAKE_BUILD_TYPE=Release ../; make install cd ../build -cmake -DCMAKE_BUILD_TYPE=Release -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no -DPYTHON_EXECUTABLE=/opt/python/${PYTHON_DIR}/bin/python ../; +cmake -DBoost_NO_BOOST_CMAKE=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DPAGMO_BUILD_PYGMO=yes \ + -DPAGMO_BUILD_PAGMO=no \ + -DPYTHON_EXECUTABLE=/opt/python/${PYTHON_DIR}/bin/python ../; make -j2 install cd wheel # Copy the installed pygmo files, wherever they might be in /usr/local, From c02fbe1a262c690e69c58aa4cb068492f5ae63e7 Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 17:49:13 +0200 Subject: [PATCH 5/9] Fix for wron py37mu library --- tools/install_docker.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/install_docker.sh b/tools/install_docker.sh index 7f84fd575..503250942 100644 --- a/tools/install_docker.sh +++ b/tools/install_docker.sh @@ -57,6 +57,7 @@ cmake -DBoost_NO_BOOST_CMAKE=ON \ -DCMAKE_BUILD_TYPE=Release \ -DPAGMO_BUILD_PYGMO=yes \ -DPAGMO_BUILD_PAGMO=no \ + -DBoost_PYTHON${PYTHON_VERSION}_LIBRARY_RELEASE=/usr/local/lib/${BOOST_PYTHON_LIBRARY_NAME} \ -DPYTHON_EXECUTABLE=/opt/python/${PYTHON_DIR}/bin/python ../; make -j2 install cd wheel From fa772c1a3982c1c48b9cbc894e2046dca033b7c4 Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 17:50:33 +0200 Subject: [PATCH 6/9] Reenabling all builds --- .circleci/config.yml | 88 ++++++++++++++++---------------- .travis.yml | 116 +++++++++++++++++++++---------------------- 2 files changed, 102 insertions(+), 102 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6987611b0..4dfc7ea49 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,44 +1,44 @@ -#version: 2 -# -#jobs: -# bionic_gcc7_coverage: -# docker: -# - image: circleci/buildpack-deps:bionic -# steps: -# - checkout -# - run: -# name: Build and test -# command: bash ./tools/circleci_bionic_gcc7_coverage.sh -# cosmic_gcc8_asan: -# docker: -# - image: circleci/buildpack-deps:cosmic -# steps: -# - checkout -# - run: -# name: Build and test -# command: bash ./tools/circleci_cosmic_gcc8_asan.sh -# cosmic_clang7: -# docker: -# - image: circleci/buildpack-deps:cosmic -# steps: -# - checkout -# - run: -# name: Build and test -# command: bash ./tools/circleci_cosmic_clang7.sh -# bionic_clang6_release: -# docker: -# - image: circleci/buildpack-deps:bionic -# steps: -# - checkout -# - run: -# name: Build and test -# command: bash ./tools/circleci_bionic_clang6_release.sh -# -#workflows: -# version: 2 -# all_builds: -# jobs: -# - bionic_gcc7_coverage -# - cosmic_gcc8_asan -# - cosmic_clang7 -# - bionic_clang6_release +version: 2 + +jobs: + bionic_gcc7_coverage: + docker: + - image: circleci/buildpack-deps:bionic + steps: + - checkout + - run: + name: Build and test + command: bash ./tools/circleci_bionic_gcc7_coverage.sh + cosmic_gcc8_asan: + docker: + - image: circleci/buildpack-deps:cosmic + steps: + - checkout + - run: + name: Build and test + command: bash ./tools/circleci_cosmic_gcc8_asan.sh + cosmic_clang7: + docker: + - image: circleci/buildpack-deps:cosmic + steps: + - checkout + - run: + name: Build and test + command: bash ./tools/circleci_cosmic_clang7.sh + bionic_clang6_release: + docker: + - image: circleci/buildpack-deps:bionic + steps: + - checkout + - run: + name: Build and test + command: bash ./tools/circleci_bionic_clang6_release.sh + +workflows: + version: 2 + all_builds: + jobs: + - bionic_gcc7_coverage + - cosmic_gcc8_asan + - cosmic_clang7 + - bionic_clang6_release diff --git a/.travis.yml b/.travis.yml index 6d0219925..77cb3e313 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,64 +16,64 @@ env: matrix: include: - #- env: PAGMO_BUILD="DebugGCC48" - # dist: trusty - # compiler: gcc - # os: linux - # addons: - # apt: - # sources: - # - ubuntu-toolchain-r-test - # packages: - # - gcc-4.8 - # - g++-4.8 - # - binutils-gold - #- env: PAGMO_BUILD="ReleaseGCC48" - # dist: trusty - # compiler: gcc - # os: linux - # addons: - # apt: - # sources: - # - ubuntu-toolchain-r-test - # packages: - # - gcc-4.8 - # - g++-4.8 - # - binutils-gold - #- env: PAGMO_BUILD="Python37" - # dist: trusty - # compiler: gcc - # os: linux - # addons: - # apt: - # sources: - # - ubuntu-toolchain-r-test - # packages: - # - gcc-4.8 - # - g++-4.8 - #- env: PAGMO_BUILD="Python27" - # dist: trusty - # compiler: gcc - # os: linux - # addons: - # apt: - # sources: - # - ubuntu-toolchain-r-test - # packages: - # - gcc-4.8 - # - g++-4.8 - #- env: PAGMO_BUILD="OSXDebug" - # os: osx - # osx_image: xcode6.4 - #- env: PAGMO_BUILD="OSXRelease" - # os: osx - # osx_image: xcode6.4 - #- env: PAGMO_BUILD="OSXPython37" - # os: osx - # osx_image: xcode6.4 - #- env: PAGMO_BUILD="OSXPython27" - # os: osx - # osx_image: xcode6.4 + - env: PAGMO_BUILD="DebugGCC48" + dist: trusty + compiler: gcc + os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-4.8 + - g++-4.8 + - binutils-gold + - env: PAGMO_BUILD="ReleaseGCC48" + dist: trusty + compiler: gcc + os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-4.8 + - g++-4.8 + - binutils-gold + - env: PAGMO_BUILD="Python37" + dist: trusty + compiler: gcc + os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-4.8 + - g++-4.8 + - env: PAGMO_BUILD="Python27" + dist: trusty + compiler: gcc + os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-4.8 + - g++-4.8 + - env: PAGMO_BUILD="OSXDebug" + os: osx + osx_image: xcode6.4 + - env: PAGMO_BUILD="OSXRelease" + os: osx + osx_image: xcode6.4 + - env: PAGMO_BUILD="OSXPython37" + os: osx + osx_image: xcode6.4 + - env: PAGMO_BUILD="OSXPython27" + os: osx + osx_image: xcode6.4 - env: PAGMO_BUILD="manylinux64Py37" DOCKER_IMAGE="pagmo2/manylinux1_x86_64_with_deps" sudo: required services: From 2ce95f47582dfe09f6c87391a173226265bc2d61 Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 17:55:49 +0200 Subject: [PATCH 7/9] Reenabling all builds --- appveyor.yml | 302 +++++++++++++++++++++++++-------------------------- 1 file changed, 151 insertions(+), 151 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ff5849db0..e5c4b8f9f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,154 +1,154 @@ -#environment: -# TWINE_PASSWORD: -# secure: fqy2DKVE2zM+97vNPB8xgw3ae3SDPkL/T8RvC6s4ncY= -# matrix: -# - BUILD_TYPE: "MSVC_64_Debug" -# COMPILER: MSVC15 -# PLATFORM: "x64" -# - BUILD_TYPE: "MSVC_64_Python37" -# COMPILER: MSVC15 -# PLATFORM: "x64" -# - BUILD_TYPE: "MSVC_64_Python36" -# COMPILER: MSVC15 -# PLATFORM: "x64" -# - BUILD_TYPE: "MinGW_64_Debug" -# - BUILD_TYPE: "MinGW_64_Python27" -# - BUILD_TYPE: "MinGW_64_Python35" -# - BUILD_TYPE: "MinGW_64_Python36" -# global: -# PLATFORMTOOLSET: "v140" -# -#install: -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] set PATH=C:\Miniconda36-x64\Scripts;%PATH% -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda config --add channels conda-forge --force -## NOTE: we clean and update the conda env due to some apparent caching issues in the -## conda version installed on appveyor. This is necessary sometimes, depending on the -## current state of conda. -## - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda clean --all -y -## - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update conda -y -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update --all -y -## NOTE: we are installing some extra packages here (the same as in the python builds, even though we don't -## use Python here), because otherwise there's some error arising when trying to detect the nlopt installation. -## Not clear why that's the case, hopefully it's temporary. -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel -## NOTE: need to use "call" because otherwise it won't work within an if block. -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] call activate pagmo -# -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] set PATH=C:\Miniconda37-x64\Scripts;%PATH% -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda config --add channels conda-forge --force -## - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda clean --all -y -## - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update conda -y -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update --all -y -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda create -y --name pagmo python=3.7 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] call activate pagmo -# -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] set PATH=C:\Miniconda36-x64\Scripts;%PATH% -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda config --add channels conda-forge --force -## - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda clean --all -y -## - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update conda -y -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update --all -y -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] call activate pagmo -# -## Rename sh.exe as sh.exe in PATH interferes with MinGW. -#- if [%BUILD_TYPE%]==[MinGW_64_Debug] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" -# -#- if [%BUILD_TYPE%]==[MinGW_64_Python27] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" -#- if [%BUILD_TYPE%]==[MinGW_64_Python35] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" -#- if [%BUILD_TYPE%]==[MinGW_64_Python36] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" -# -#build_script: -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] mkdir build -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] cd build -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_TESTS=YES -DPAGMO_BUILD_TUTORIALS=YES -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake --build . --config Release --target install -# -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pagmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pagmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pygmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pygmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install -# -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pagmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pagmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pygmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pygmo -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install -# -#- if [%BUILD_TYPE%]==[MinGW_64_Debug] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py -# -#- if [%BUILD_TYPE%]==[MinGW_64_Python27] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py -#- if [%BUILD_TYPE%]==[MinGW_64_Python35] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py -#- if [%BUILD_TYPE%]==[MinGW_64_Python36] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py -# -#test_script: -#- if [%BUILD_TYPE%]==[MSVC_64_Debug] ctest --output-on-failure -# -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd tools -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] Powershell.exe -File start_ip_cluster.ps1 -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] timeout 20 -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python -c "import pygmo; pygmo.test.run_test_suite(1)" -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python travis_additional_tests.py -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd ap_examples -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd uda_basic -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test1.py -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd udp_basic -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test2.py -# -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd tools -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] Powershell.exe -File start_ip_cluster.ps1 -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] timeout 20 -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python -c "import pygmo; pygmo.test.run_test_suite(1)" -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python travis_additional_tests.py -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ap_examples -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd uda_basic -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test1.py -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd udp_basic -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. -#- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test2.py -# -#artifacts: -# - path: build\wheel\dist -# name: wheels -# -#notifications: -# - provider: Webhook -# url: https://webhooks.gitter.im/e/1a3742192bd3f7e6d8e2 +environment: + TWINE_PASSWORD: + secure: fqy2DKVE2zM+97vNPB8xgw3ae3SDPkL/T8RvC6s4ncY= + matrix: + - BUILD_TYPE: "MSVC_64_Debug" + COMPILER: MSVC15 + PLATFORM: "x64" + - BUILD_TYPE: "MSVC_64_Python37" + COMPILER: MSVC15 + PLATFORM: "x64" + - BUILD_TYPE: "MSVC_64_Python36" + COMPILER: MSVC15 + PLATFORM: "x64" + - BUILD_TYPE: "MinGW_64_Debug" + - BUILD_TYPE: "MinGW_64_Python37" + - BUILD_TYPE: "MinGW_64_Python36" + - BUILD_TYPE: "MinGW_64_Python27" + global: + PLATFORMTOOLSET: "v140" + +install: +- if [%BUILD_TYPE%]==[MSVC_64_Debug] set PATH=C:\Miniconda36-x64\Scripts;%PATH% +- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda config --add channels conda-forge --force +# NOTE: we clean and update the conda env due to some apparent caching issues in the +# conda version installed on appveyor. This is necessary sometimes, depending on the +# current state of conda. +# - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda clean --all -y +# - if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update conda -y +- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update --all -y +# NOTE: we are installing some extra packages here (the same as in the python builds, even though we don't +# use Python here), because otherwise there's some error arising when trying to detect the nlopt installation. +# Not clear why that's the case, hopefully it's temporary. +- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel +# NOTE: need to use "call" because otherwise it won't work within an if block. +- if [%BUILD_TYPE%]==[MSVC_64_Debug] call activate pagmo + +- if [%BUILD_TYPE%]==[MSVC_64_Python37] set PATH=C:\Miniconda37-x64\Scripts;%PATH% +- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda config --add channels conda-forge --force +# - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda clean --all -y +# - if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update conda -y +- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda update --all -y +- if [%BUILD_TYPE%]==[MSVC_64_Python37] conda create -y --name pagmo python=3.7 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel +- if [%BUILD_TYPE%]==[MSVC_64_Python37] call activate pagmo + +- if [%BUILD_TYPE%]==[MSVC_64_Python36] set PATH=C:\Miniconda36-x64\Scripts;%PATH% +- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda config --add channels conda-forge --force +# - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda clean --all -y +# - if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update conda -y +- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update --all -y +- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle dill ipyparallel tbb tbb-devel +- if [%BUILD_TYPE%]==[MSVC_64_Python36] call activate pagmo + +# Rename sh.exe as sh.exe in PATH interferes with MinGW. +- if [%BUILD_TYPE%]==[MinGW_64_Debug] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" + +- if [%BUILD_TYPE%]==[MinGW_64_Python27] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" +- if [%BUILD_TYPE%]==[MinGW_64_Python36] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" +- if [%BUILD_TYPE%]==[MinGW_64_Python37] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe" + +build_script: +- if [%BUILD_TYPE%]==[MSVC_64_Debug] mkdir build +- if [%BUILD_TYPE%]==[MSVC_64_Debug] cd build +- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_TESTS=YES -DPAGMO_BUILD_TUTORIALS=YES -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. +- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake --build . --config Release --target install + +- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pagmo +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pagmo +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build_pygmo +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build_pygmo +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install + +- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pagmo +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pagmo +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pygmo +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pygmo +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install + +- if [%BUILD_TYPE%]==[MinGW_64_Debug] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py + +- if [%BUILD_TYPE%]==[MinGW_64_Python27] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py +- if [%BUILD_TYPE%]==[MinGW_64_Python36] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py +- if [%BUILD_TYPE%]==[MinGW_64_Python37] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py + +test_script: +- if [%BUILD_TYPE%]==[MSVC_64_Debug] ctest --output-on-failure + +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd tools +- if [%BUILD_TYPE%]==[MSVC_64_Python37] Powershell.exe -File start_ip_cluster.ps1 +- if [%BUILD_TYPE%]==[MSVC_64_Python37] timeout 20 +- if [%BUILD_TYPE%]==[MSVC_64_Python37] python -c "import pygmo; pygmo.test.run_test_suite(1)" +- if [%BUILD_TYPE%]==[MSVC_64_Python37] python travis_additional_tests.py +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd ap_examples +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd uda_basic +- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test1.py +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd udp_basic +- if [%BUILD_TYPE%]==[MSVC_64_Python37] mkdir build +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd build +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cmake --build . --config Release --target install +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python37] python test2.py + +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd tools +- if [%BUILD_TYPE%]==[MSVC_64_Python36] Powershell.exe -File start_ip_cluster.ps1 +- if [%BUILD_TYPE%]==[MSVC_64_Python36] timeout 20 +- if [%BUILD_TYPE%]==[MSVC_64_Python36] python -c "import pygmo; pygmo.test.run_test_suite(1)" +- if [%BUILD_TYPE%]==[MSVC_64_Python36] python travis_additional_tests.py +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ap_examples +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd uda_basic +- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test1.py +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd udp_basic +- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd .. +- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test2.py + +artifacts: + - path: build\wheel\dist + name: wheels + +notifications: + - provider: Webhook + url: https://webhooks.gitter.im/e/1a3742192bd3f7e6d8e2 # Enable this to be able to login to the build worker. You can use the # `remmina` program in Ubuntu, use the login information that the line below From ebc71803de86a99111790d9adabbbd99d1f2af2d Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Tue, 14 May 2019 23:34:24 +0200 Subject: [PATCH 8/9] typos fixes and merge to the appveyor work --- .circleci/config.yml | 3 ++- tools/install_appveyor_mingw.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 35fce6d4c..b838aee59 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,4 +41,5 @@ workflows: - bionic_gcc7_coverage - cosmic_gcc8_asan - cosmic_clang7 - - bionic_clang6_release \ No newline at end of file + - bionic_clang6_release + \ No newline at end of file diff --git a/tools/install_appveyor_mingw.py b/tools/install_appveyor_mingw.py index 25e24a287..28a33cf31 100644 --- a/tools/install_appveyor_mingw.py +++ b/tools/install_appveyor_mingw.py @@ -93,7 +93,7 @@ def run_command(raw_command, directory=None, verbose=True): python_version = r'27' python_folder = r'Python27-x64' python_library = r'C:\\' + python_folder + r'\\libs\\python27.dll ' - # Fot py27 I could not get it to work with the appveyor python (I was close but got tired). + # For py27 I could not get it to work with the appveyor python (I was close but got tired). # Since this is anyway going to disappear (py27 really!!!), I am handling it as a one time workaround using the old py27 patched by bluescarni rm_fr(r'c:\\Python27-x64') wget(r'https://github.com/bluescarni/binary_deps/raw/master/python27_mingw_64.7z', 'python.7z') From 6d228c407333e80b7754b638205effaf6c8f9790 Mon Sep 17 00:00:00 2001 From: Dario Izzo Date: Wed, 15 May 2019 07:29:19 +0200 Subject: [PATCH 9/9] last typos fixes --- tools/install_appveyor_mingw.py | 2 +- tools/install_docker.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install_appveyor_mingw.py b/tools/install_appveyor_mingw.py index 28a33cf31..732d8022a 100644 --- a/tools/install_appveyor_mingw.py +++ b/tools/install_appveyor_mingw.py @@ -123,7 +123,7 @@ def run_command(raw_command, directory=None, verbose=True): # Proceed to the build. # NOTE: at the moment boost 1.70 seems to have problem to autodetect -# the mingw library (with CMake 1.13 currently installed in appveyor) +# the mingw library (with CMake 3.13 currently installed in appveyor) # Thus we manually point to the boost libs. common_cmake_opts = r'-DCMAKE_PREFIX_PATH=c:\\local ' + \ r'-DCMAKE_INSTALL_PREFIX=c:\\local ' + \ diff --git a/tools/install_docker.sh b/tools/install_docker.sh index 503250942..087317f02 100644 --- a/tools/install_docker.sh +++ b/tools/install_docker.sh @@ -23,7 +23,7 @@ elif [[ ${PAGMO_BUILD} == *27 ]]; then BOOST_PYTHON_LIBRARY_NAME="libboost_python27.so" PYTHON_VERSION="27" else - echo "Invalid build type: ${PYKEP_BUILD}" + echo "Invalid build type: ${PAGMO_BUILD}" exit 1 fi