CLI File Encryptor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
900B

  1. language: php
  2. php:
  3. - '7.2'
  4. - '7.3'
  5. cache:
  6. directories:
  7. - $HOME/.composer/cache/files
  8. before_install:
  9. # Manually compile the libsodium library
  10. - sudo apt-get update -qq
  11. - sudo apt-get install build-essential git -y
  12. - git clone -b stable https://github.com/jedisct1/libsodium.git
  13. - cd libsodium && sudo ./configure && sudo make check && sudo make install && cd ..
  14. install:
  15. # Manually install libsodium, because the TravicCi image doesn't provide PHP7.2 with libsodium
  16. - pecl install libsodium
  17. - echo "extension=sodium.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  18. - composer install
  19. script:
  20. - vendor/bin/phpunit tests --bootstrap vendor/autoload.php --coverage-clover reports/coverage/clover.xml
  21. #after_script:
  22. # only if generated
  23. # - if [ -f reports/coverage/clover.xml ]; then vendor/bin/test-reporter --coverage-report reports/coverage/clover.xml; fi