File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ coverage_clover : build/logs/clover.xml
2+ json_path : build/logs/coveralls-upload.json
3+ service_name : travis-ci
Original file line number Diff line number Diff line change 1+ sudo : required
2+
13language : php
24
35php :
46 - 5.6
57 - 7.0
68 - 7.1
79 - 7.2
8- - hhvm
10+ - 7.3
911
10- matrix :
11- allow_failures :
12- - php : 7.2
13- - php : hhvm
12+ env :
13+ - SIMPLESAMLPHP_VERSION=1.17.*
1414
1515before_script :
16- - composer update
17- - if [[ "$TRAVIS_PHP_VERSION" == "7.2" ]]; then echo 'error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
16+ - composer require "simplesamlphp/simplesamlphp:${SIMPLESAMLPHP_VERSION}" --no-update
17+ - composer update --no-interaction
18+ - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then composer require --dev php-coveralls/php-coveralls; fi
19+ - if [[ "$TRAVIS_PHP_VERSION" == "7.3" ]]; then composer require --dev vimeo/psalm:1.1.9; fi
20+
21+ script :
22+ - bin/check-syntax.sh
23+ - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then php vendor/phpunit/phpunit/phpunit; else php vendor/phpunit/phpunit/phpunit --no-coverage; fi
24+ - if [[ "$TRAVIS_PHP_VERSION" == "7.3" ]]; then vendor/bin/psalm; fi
1825
19- script : php vendor/phpunit/phpunit/phpunit
26+ after_success :
27+ - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then php vendor/bin/php-coveralls -v; fi
2028
Original file line number Diff line number Diff line change 1010 "homepage" : " http://orcid.org/0000-0002-9388-8592"
1111 }
1212 ],
13+ "config" : {
14+ "preferred-install" : {
15+ "simplesamlphp/simplesamlphp" : " source" ,
16+ "*" : " dist"
17+ }
18+ },
1319 "require" : {
1420 "php" : " >=5.6" ,
1521 "simplesamlphp/composer-module-installer" : " ~1.1"
1622 },
1723 "require-dev" : {
1824 "simplesamlphp/simplesamlphp" : " >=1.17" ,
19- "phpunit/phpunit" : " ~4.8 "
25+ "phpunit/phpunit" : " ~5.7 "
2026 },
2127 "autoload" : {
2228 "psr-4" : {
3339 "source" : " https://github.com/safire-ac-za/simplesamlphp-module-fticks"
3440 }
3541}
36-
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <phpunit bootstrap =" tests/bootstrap.php" colors =" true" >
2+ <phpunit backupGlobals =" false"
3+ backupStaticAttributes =" false"
4+ colors =" true"
5+ convertErrorsToExceptions =" true"
6+ convertNoticesToExceptions =" true"
7+ convertWarningsToExceptions =" true"
8+ processIsolation =" false"
9+ stopOnFailure =" false"
10+ bootstrap =" ./tests/bootstrap.php" >
311 <testsuites >
4- <testsuite name =" The project's test suite " >
5- <directory >tests/</directory >
12+ <testsuite name =" Unit Tests " >
13+ <directory >./ tests/</directory >
614 </testsuite >
715 </testsuites >
816 <filter >
917 <whitelist processUncoveredFilesFromWhitelist =" true" >
1018 <directory suffix =" .php" >./lib</directory >
19+ <exclude >
20+ <directory >./vendor/</directory >
21+ <directory >./tests/</directory >
22+ </exclude >
1123 </whitelist >
1224 </filter >
1325 <logging >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <psalm
3+ name =" SimpleSAMLphp module"
4+ useDocblockTypes =" true"
5+ totallyTyped =" false"
6+ >
7+ <projectFiles >
8+ <directory name =" lib" />
9+ <ignoreFiles >
10+ <directory name =" vendor" />
11+ </ignoreFiles >
12+ </projectFiles >
13+
14+ <issueHandlers >
15+ <LessSpecificReturnType errorLevel =" info" />
16+
17+ <!-- level 3 issues - slightly lazy code writing, but probably low false-negatives -->
18+ <DeprecatedMethod errorLevel =" info" />
19+
20+ <MissingClosureReturnType errorLevel =" info" />
21+ <MissingReturnType errorLevel =" info" />
22+ <MissingPropertyType errorLevel =" info" />
23+ <InvalidDocblock errorLevel =" info" />
24+ <MisplacedRequiredParam errorLevel =" info" />
25+
26+ <PropertyNotSetInConstructor errorLevel =" info" />
27+ <MissingConstructor errorLevel =" info" />
28+ <MissingClosureParamType errorLevel =" info" />
29+ <MissingParamType errorLevel =" info" />
30+ <UnusedClass errorLevel =" info" />
31+ <PossiblyUnusedMethod errorLevel =" info" />
32+ </issueHandlers >
33+ </psalm >
Original file line number Diff line number Diff line change 33require_once ($ projectRoot .'/vendor/autoload.php ' );
44
55// Symlink module into ssp vendor lib so that templates and urls can resolve correctly
6- $ linkPath = $ projectRoot .'/vendor/simplesamlphp/simplesamlphp/modules/consent ' ;
6+ $ linkPath = $ projectRoot .'/vendor/simplesamlphp/simplesamlphp/modules/fticks ' ;
77if (file_exists ($ linkPath ) === false ) {
88 echo "Linking ' $ linkPath' to ' $ projectRoot' \n" ;
99 symlink ($ projectRoot , $ linkPath );
You can’t perform that action at this time.
0 commit comments