Skip to content

Commit 611906b

Browse files
authored
Merge pull request #679 from tpaviot/review/fix-travis
Review/fix travis
2 parents 95f64f2 + 063254c commit 611906b

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

.travis.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,49 +31,41 @@ env:
3131

3232
addons:
3333
apt:
34-
sources:
35-
- ubuntu-toolchain-r-test
3634
packages:
37-
- gcc-multilib
38-
- g++-multilib
39-
- lib32z1+
40-
- lsb-core
41-
- g++-7
35+
- mesa-common-dev
36+
- libgl1-mesa-dev
37+
- libglu1-mesa-dev
4238

4339
matrix:
4440
include:
4541
- env: PYTHON="2.7" CONDA_PY=27 ARCH="x86_64"
4642
os: linux
47-
dist: trusty
43+
dist: bionic
4844
- env: PYTHON="2.7" CONDA_PY=27 ARCH="x86_64"
4945
os: osx
5046
osx_image: xcode9.4
5147
- env: PYTHON="3.5" CONDA_PY=35 ARCH="x86_64"
5248
os: linux
53-
dist: trusty
49+
dist: bionic
5450
- env: PYTHON="3.5" CONDA_PY=35 ARCH="x86_64"
5551
os: osx
5652
osx_image: xcode9.4
5753
- env: PYTHON="3.6" CONDA_PY=36 ARCH="x86_64"
5854
os: linux
59-
dist: trusty
55+
dist: bionic
6056
- env: PYTHON="3.6" CONDA_PY=36 ARCH="x86_64"
6157
os: osx
6258
osx_image: xcode9.4
6359
- env: PYTHON="3.7" CONDA_PY=37 ARCH="x86_64"
6460
os: linux
65-
dist: trusty
61+
dist: bionic
6662
- env: PYTHON="3.7" CONDA_PY=37 ARCH="x86_64"
6763
os: osx
6864
osx_image: xcode9.4
6965
# Use miniconda to install binary versions of numpy etc. from continuum
7066
# analytic's repository. Follows an approach described by Dan Blanchard:
7167
# https://gist.github.com/dan-blanchard/7045057
7268
before_install:
73-
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
74-
export CXX=g++-7;
75-
export CC=gcc-7;
76-
fi;
7769
- if [ ${PYTHON:0:1} == "2" ]; then
7870
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
7971
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
@@ -99,8 +91,8 @@ before_install:
9991
# install everything required to build the receipe
10092
# conda-build 3.2.0 on osx to prevent using check_overlinking
10193
# method which is quite loooong to process
102-
- conda install conda-build==3.2.0
103-
- conda install anaconda-client
94+
#- conda install conda-build==3.2.0
95+
- conda install conda-build anaconda-client
10496
# Useful for debugging any issues with conda
10597
- conda info -a
10698
# download/install OCE from DLR-SC channel

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ set(PYTHONOCC_VERSION_DEVEL -dev)
2626

2727
cmake_minimum_required(VERSION 2.6)
2828

29+
## cmake policies
30+
if (NOT CMAKE_VERSION VERSION_LESS "3.13")
31+
# CMP0077: option() honors normal variables
32+
# https://cmake.org/cmake/help/latest/policy/CMP0077.html
33+
cmake_policy(SET CMP0077 NEW)
34+
# CMP0078: UseSWIG generates standard target names.
35+
# https://cmake.org/cmake/help/latest/policy/CMP0078.html
36+
cmake_policy(SET CMP0078 OLD)
37+
# CMP0086: UseSWIG honors SWIG_MODULE_NAME via -module
38+
cmake_policy(SET CMP0086 OLD)
39+
endif()
40+
41+
2942
if( NOT DEFINED PYTHONOCC_BUILD_TYPE )
3043
set( PYTHONOCC_BUILD_TYPE "Release" CACHE STRING "Build type" ) # By default set release build
3144
endif( NOT DEFINED PYTHONOCC_BUILD_TYPE )

ci/conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ requirements:
2727
- cmake
2828
- ninja ==1.8.2
2929
- swig ==3.0.12
30-
- freetype ==2.9.1
30+
- freetype >=2.9
3131
- smesh ==6.7.6
3232

3333
run:

0 commit comments

Comments
 (0)