This repository has been archived by the owner on Sep 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathyourls-tests-config-travis.php
65 lines (57 loc) · 2.33 KB
/
yourls-tests-config-travis.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* YOURLS Config for Travis (https://travis-ci.org/YOURLS/YOURLS)
*/
if (!defined('YOURLS_TESTS_CI') || YOURLS_TESTS_CI === false) {
define( 'YOURLS_TESTS_CI', true );
}
/*** Code base and URL of that code base */
if( $path = getenv( 'TRAVIS_REPO_SLUG' ) ) {
switch( $path ) {
case 'YOURLS/YOURLS':
define( 'YOURLS_ABSPATH', '/home/travis/build/YOURLS/YOURLS' );
break;
case 'YOURLS/YOURLS-unit-tests':
define( 'YOURLS_ABSPATH', '/home/travis/build/YOURLS/YOURLS-unit-tests/YOURLS' );
break;
default:
die( sprintf( 'Wrong repo: "%s"', $path ) );
}
} else {
die( 'Not in Travis' );
}
define( 'YOURLS_SITE', 'http://localhost/YOURLS' );
/*** MySQL settings */
define( 'YOURLS_DB_USER', 'root' );
define( 'YOURLS_DB_PASS', '' );
define( 'YOURLS_DB_NAME', 'yourls_tests' );
define( 'YOURLS_DB_HOST', 'localhost' );
/*** Site options */
define( 'YOURLS_PHP_BIN', 'php' );
/*** Standard YOURLS config. */
define('YOURLS_HOURS_OFFSET', 5);
define('YOURLS_UNIQUE_URLS', true);
define('YOURLS_PRIVATE', true);
define('YOURLS_COOKIEKEY', 'I ♥ unit tests');
define('YOURLS_URL_CONVERT', 62);
define('YOURLS_DB_PREFIX', 'yourls_');
define('YOURLS_FLOOD_DELAY_SECONDS', 0);
define('YOURLS_FLOOD_IP_WHITELIST', '');
define('YOURLS_NO_HASH_PASSWORD', true); // prevents rewriting config.php with encrypted passwords
define('YOURLS_LANG', 'fr_FR'); // locale of a sample translation file in the data dir
define('YOURLS_DEBUG', true);
$yourls_reserved_URL = array(
'porn', 'sex', 'nigger', 'fuck', 'cunt', 'dick',
);
$yourls_user_passwords = array(
'yourls' => 'travis-ci-test',
'clear' => 'somepassword',
'md5' => 'md5:12373:e52e4488f79a740bd341f229e3c163c8', // password: '3cd6944201fa7bbc5e0fe852e36b1096' with md5 and salt
'phpass' => 'phpass:!2a!08!T1ptMlBSxu7g3odpbUXgd.9wbKvg8k7cJt.HbwSqUNrlLPudWnf/6', // password: '3cd6944201fa7bbc5e0fe852e36b1096' with PHPass
'phpass2' => 'phpass:$2a$08$gt2bnpfUyuCX3hrp0RPOieFR1RwBnLsMzpq/NvPXwCdV3LqI3RGYi', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' but without YOURLS internal char substitution
'1994' => '@$*',
'special' => 'lol .\+*?[^]$(){}=!<>|:-/',
'quote1' => '"ahah"',
'quote2' => "'ahah'",
'utf8fun' => 'أنا أحب النقانق',
);