This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/.travis.yml

41 lines
1022 B
YAML

dist: bionic
group: edge
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
global:
- ARMA_VERSION="9.880.1"
- ARMA_SRC="http://sourceforge.net/projects/arma/files/armadillo-${ARMA_VERSION}.tar.xz"
before_install:
- sudo apt-get update -qq
- wget $ARMA_SRC -O arma_src.tar.xz
- tar -Jxvf arma_src.tar.xz
install:
- sudo apt-get install -qq build-essential cmake
- sudo apt-get install -qq libopenblas-dev liblapack-dev libarpack2-dev
- sudo apt-get install -qq libsuperlu-dev libhdf5-dev
- pushd armadillo-${ARMA_VERSION} && cmake . && make && sudo make install && popd
before_script:
- phpenv config-rm xdebug.ini
script:
- phpize
- ./configure --enable-arma-operators --enable-arma-pch
- make -j$(nproc) EXTRA_CXXFLAGS='--coverage' EXTRA_LDFLAGS='-fprofile-arcs'
- make test
after_success:
- php-config -v | grep 7.4 # Run coverage on PHP 7.4 only
- test $? = 0 && gcov --object-directory=src/.libs src/*.cc
- test $? = 0 && bash <(curl -s https://codecov.io/bash)