endtoend-test-psl/.travis.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2019-12-24 02:16:24 +01:00
dist: trusty
language: php
sudo: required
2019-12-24 02:16:24 +01:00
os:
- linux
jobs:
2020-03-01 21:33:28 +01:00
include:
- php: 7.4
2019-12-24 02:16:24 +01:00
- php: nightly
2020-03-01 21:58:57 +01:00
env: NIGHTLY_BUILD=true
2020-09-05 04:48:17 +02:00
allow_failures:
- env: NIGHTLY_BUILD=true
2020-03-01 21:33:28 +01:00
fast_finish: true
2019-12-24 02:16:24 +01:00
2020-07-06 20:13:58 +02:00
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 ..
2019-12-24 02:16:24 +01:00
install:
- pecl channel-update pecl.php.net
- pecl install libsodium
2020-03-01 21:33:28 +01:00
- php --version
2019-12-25 19:39:01 +01:00
- composer self-update
- composer --version
2020-03-01 21:58:57 +01:00
- if [[ $NIGHTLY_BUILD = 'true' ]]; then composer install --ignore-platform-reqs; else composer install; fi
2019-12-24 02:16:24 +01:00
script:
2020-01-02 00:31:28 +01:00
- composer test:unit
2020-03-01 21:58:57 +01:00
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer cs:check; fi
2020-03-01 22:20:13 +01:00
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer type:check; fi
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer security:analysis; fi
2019-12-25 19:39:01 +01:00
after_script:
2020-03-01 22:20:13 +01:00
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer code:coverage; fi
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer type:coverage; fi