@@ -4,12 +4,30 @@ branches:
44
55dist : trusty
66language : php
7- php :
8- - 5.6
9- - 7.0
10- - 7.1
11- - 7.2
12- - 7.3
7+
8+ matrix :
9+ include :
10+
11+ - php : 5.6
12+ env :
13+ - BUILD_NAME=PHP_5.6
14+
15+ - php : 7.0
16+ env :
17+ - BUILD_NAME=PHP_7.0
18+
19+ - php : 7.1
20+ env :
21+ - BUILD_NAME=PHP_7.1
22+
23+ - php : 7.2
24+ env :
25+ - BUILD_NAME=PHP_7.2_WITH_ASAN
26+
27+ - php : 7.3
28+ env :
29+ - BUILD_NAME=PHP_7.3
30+
1331cache :
1432 apt : true
1533 directories :
@@ -54,47 +72,13 @@ compiler:
5472 - clang
5573
5674before_install :
57- - sudo mv /etc/apt/sources.list.d/pgdg* /tmp
58- - dpkg -l | grep postgresql
59- - dpkg -l | grep postgis
60- - sudo apt-get remove postgresql*
61- - sudo add-apt-repository -y ppa:ubuntugis/ppa
62- - sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-testing
63- - sudo apt-get update
64- - sudo apt-get install --allow-unauthenticated protobuf-c-compiler libprotobuf-c0-dev bison flex python-lxml libfribidi-dev cmake librsvg2-dev colordiff libpq-dev libpng12-dev libjpeg-dev libgif-dev libgeos-dev libgd2-xpm-dev libfreetype6-dev libfcgi-dev libcurl4-gnutls-dev libcairo2-dev libgdal1-dev libproj-dev libxml2-dev python-dev libexempi-dev lcov lftp postgis libharfbuzz-dev gdal-bin ccache
65- - sudo apt-get install --allow-unauthenticated libmono-system-drawing4.0-cil mono-mcs
66- - sudo apt-get install --allow-unauthenticated php5-dev || sudo apt-get install --allow-unauthenticated php7-dev
67- - sudo apt-get install --allow-unauthenticated libperl-dev
68- - sudo pip install git+git://github.com/tbonfort/cpp-coveralls.git@extensions
69- # install swig 3.0.12 (defaults to 2.0.11 on trusty)
70- - wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz
71- - export CC="ccache gcc"
72- - export CXX="ccache g++"
73- - tar xf swig-3.0.12.tar.gz
74- - cd swig-3.0.12 && ./configure --prefix=/usr && make -j2 && sudo make install
75- - swig -version
76- - cd ..
77- - cd msautotest
78- - ./create_postgis_test_data.sh
79- - python -m SimpleHTTPServer &> /dev/null &
80- - cd ..
81- - touch maplexer.l
82- - touch mapparser.y
83-
75+ - ./ci/travis/before_install.sh
8476
8577script :
86- - export CC="ccache gcc"
87- - export CXX="ccache g++"
88- - make cmakebuild MFLAGS="-j2"
89- - make mspython-wheel
90- - make -j4 test
78+ - ./ci/travis/script.sh
9179
9280after_success :
93- # Only run coverage when it is safe to do so (not on pull requests), and only on master branch
94- - echo "$TRAVIS_SECURE_ENV_VARS"
95- - echo "$TRAVIS_BRANCH"
96- - sh -c 'if test "$TRAVIS_SECURE_ENV_VARS" = "true" -a "$TRAVIS_BRANCH" = "master"; then echo "run coverage"; ./run_code_coverage_upload.sh; fi'
97- - coveralls --exclude renderers --exclude mapscript --exclude apache --exclude build/mapscript/mapscriptJAVA_wrap.c --exclude build/mapscript/mapscriptPYTHON_wrap.c --exclude shp2img.c --exclude legend.c --exclude scalebar.c --exclude msencrypt.c --exclude sortshp.c --exclude shptreevis.c --exclude shptree.c --exclude testexpr.c --exclude sym2img.c --exclude testcopy.c --exclude shptreetst.c --exclude tile4ms.c --extension .c --extension .cpp
81+ - ./ci/travis/after_success.sh
9882
9983notifications :
10084 email :
0 commit comments