endtoend-test-psl/.travis.yml
2020-09-05 03:48:17 +01:00

42 lines
1.1 KiB
YAML

dist: trusty
language: php
sudo: required
os:
- linux
jobs:
include:
- php: 7.4
- php: nightly
env: NIGHTLY_BUILD=true
allow_failures:
- env: NIGHTLY_BUILD=true
fast_finish: true
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- git clone -b stable https://github.com/jedisct1/libsodium.git
- cd libsodium && sudo ./configure && sudo make check && sudo make install && cd ..
install:
- pecl channel-update pecl.php.net
- pecl install libsodium
- php --version
- composer self-update
- composer --version
- if [[ $NIGHTLY_BUILD = 'true' ]]; then composer install --ignore-platform-reqs; else composer install; fi
script:
- composer test:unit
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer cs:check; fi
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer type:check; fi
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer security:analysis; fi
after_script:
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer code:coverage; fi
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer type:coverage; fi