| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b4827bf commit a87441f
19 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | - /cache/.gitkeep export-ignore | ||
| 2 | - /config/.gitkeep export-ignore | ||
| 3 | - /metadata/.gitkeep export-ignore | ||
| 1 | + /cert/.gitkeep export-ignore | ||
| 2 | + /www/assets/css/.gitkeep export-ignore | ||
| 3 | + /www/assets/fonts/.gitkeep export-ignore | ||
| 4 | + /www/assets/js/.gitkeep export-ignore | ||
| 4 | 5 | /tests export-ignore | |
| 5 | - /tools export-ignore | ||
| 6 | 6 | codecov.yml export-ignore | |
| 7 | 7 | .editorconfig export-ignore | |
| 8 | 8 | .gitattributes export-ignore | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,9 @@ | |||
| 1 | - /log/ | ||
| 2 | - /config/ | ||
| 3 | - /metadata/ | ||
| 4 | - /cert/ | ||
| 1 | + cert/* | ||
| 2 | + config/* | ||
| 3 | + metadata/* | ||
| 4 | + !/cert/*.gitkeep | ||
| 5 | + !/config/*.dist | ||
| 6 | + !/metadata/*.dist | ||
| 5 | 7 | /www/assets/fonts/* | |
| 6 | 8 | /www/assets/js/*.js | |
| 7 | 9 | /www/assets/js/*.js.LICENSE.txt | |
@@ -13,10 +15,6 @@ | |||
| 13 | 15 | /www/assets/css/*.map | |
| 14 | 16 | .phpunit.result.cache | |
| 15 | 17 | ||
| 16 | - !/config/.gitkeep | ||
| 17 | - !/metadata/.gitkeep | ||
| 18 | - !/cache/.gitkeep | ||
| 19 | - !/locales/.gitkeep | ||
| 20 | 18 | !/www/assets/fonts/.gitkeep | |
| 21 | 19 | !/www/assets/js/.gitkeep | |
| 22 | 20 | !/www/assets/css/.gitkeep | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,9 +8,7 @@ REPOPATH=$2 | |||
| 8 | 8 | if ! shift; then | |
| 9 | 9 | echo "$0: Missing required version parameter." >&2 | |
| 10 | 10 | exit 1 | |
| 11 | - fi | ||
| 12 | - | ||
| 13 | - if [ -z "$VERSION" ]; then | ||
| 11 | + elif [ -z "$VERSION" ]; then | ||
| 14 | 12 | echo "$0: Empty version parameter." >&2 | |
| 15 | 13 | exit 1 | |
| 16 | 14 | fi | |
@@ -21,6 +19,7 @@ fi | |||
| 21 | 19 | ||
| 22 | 20 | TAG="v$VERSION" | |
| 23 | 21 | TARGET="simplesamlphp-$VERSION" | |
| 22 | + COMPOSER="/tmp/composer.phar" | ||
| 24 | 23 | ||
| 25 | 24 | cd /tmp | |
| 26 | 25 | ||
@@ -31,42 +30,24 @@ fi | |||
| 31 | 30 | ||
| 32 | 31 | umask 0022 | |
| 33 | 32 | ||
| 34 | - git clone $REPOPATH $TARGET | ||
| 33 | + git clone --depth 1 --branch $TAG $REPOPATH $TARGET | ||
| 35 | 34 | cd $TARGET | |
| 36 | - git checkout $TAG | ||
| 37 | - cd .. | ||
| 38 | 35 | ||
| 39 | - if [ ! -x "$TARGET/composer.phar" ]; then | ||
| 40 | - curl -sS https://getcomposer.org/installer | php -- --install-dir=$TARGET | ||
| 36 | + if [ ! -x "$COMPOSER" ]; then | ||
| 37 | + curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp | ||
| 41 | 38 | fi | |
| 42 | 39 | ||
| 43 | 40 | # Set the version in composer.json | |
| 44 | - php "$TARGET/composer.phar" config version "v$VERSION" -d "$TARGET" | ||
| 41 | + php "$COMPOSER" config version "v$VERSION" | ||
| 45 | 42 | ||
| 46 | 43 | # Install dependencies (without vcs history or dev tools) | |
| 47 | - php "$TARGET/composer.phar" install --no-dev --prefer-dist -o -d "$TARGET" | ||
| 44 | + php "$COMPOSER" install --no-dev --prefer-dist -o | ||
| 48 | 45 | ||
| 49 | - cd $TARGET | ||
| 50 | 46 | npm install | |
| 51 | 47 | npm audit fix | |
| 52 | 48 | npx browserslist@latest --update-db | |
| 53 | 49 | npm run build | |
| 54 | - cd .. | ||
| 55 | - | ||
| 56 | - mkdir -p "$TARGET/config" "$TARGET/metadata" "$TARGET/cert" "$TARGET/log" "$TARGET/data" | ||
| 57 | - cp -rv "$TARGET/config-templates/"* "$TARGET/config/" | ||
| 58 | - cp -rv "$TARGET/metadata-templates/"* "$TARGET/metadata/" | ||
| 59 | - rm -rf "$TARGET/.git" | ||
| 60 | - rm -rf "$TARGET/node_modules" | ||
| 61 | - rm "$TARGET/www/assets/js/stylesheet.js"* | ||
| 62 | - rm "$TARGET/.editorconfig" | ||
| 63 | - rm "$TARGET/.gitattributes" | ||
| 64 | - rm -r "$TARGET/.github" | ||
| 65 | - rm "$TARGET"/phpunit.xml | ||
| 66 | - rm "$TARGET"/{cache,config,metadata,locales}/.gitkeep | ||
| 67 | - rm "$TARGET/composer.phar" | ||
| 68 | - rm "$TARGET/bin/build-release.sh" | ||
| 69 | - tar --owner 0 --group 0 -cvzf "$TARGET.tar.gz" "$TARGET" | ||
| 70 | - rm -rf "$TARGET" | ||
| 71 | 50 | ||
| 72 | - echo "Created: /tmp/$TARGET.tar.gz" | ||
| 51 | + php "$COMPOSER" archive -f tar.gz --dir /tmp --file "$TARGET" | ||
| 52 | + rm "$COMPOSER" | ||
| 53 | + echo `shasum -a 256 /tmp/$TARGET.tar.gz` | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,5 +106,27 @@ | |||
| 106 | 106 | "simplesamlphp/composer-module-installer": true, | |
| 107 | 107 | "muglug/package-versions-56": true | |
| 108 | 108 | } | |
| 109 | + }, | ||
| 110 | + "archive": { | ||
| 111 | + "exclude": [ | ||
| 112 | + ".editorconfig", | ||
| 113 | + ".gitattributes", | ||
| 114 | + ".gitignore", | ||
| 115 | + ".markdownlintignore", | ||
| 116 | + ".markdownlintrc", | ||
| 117 | + ".php_cs.dist", | ||
| 118 | + "bin/build-release.sh", | ||
| 119 | + "cert/.gitkeep", | ||
| 120 | + "codecov.yml", | ||
| 121 | + "node_modules", | ||
| 122 | + "phpcs.xml", | ||
| 123 | + "phpunit.xml", | ||
| 124 | + "phpunit-interoperability.xml", | ||
| 125 | + "psalm.xml", | ||
| 126 | + "tests", | ||
| 127 | + "www/assets/css/.gitkeep", | ||
| 128 | + "www/assets/fonts/.gitkeep", | ||
| 129 | + "www/assets/js/.gitkeep" | ||
| 130 | + ] | ||
| 109 | 131 | } | |
| 110 | 132 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,8 +64,8 @@ | |||
| 64 | 64 | * When specified as a relative path, this is relative to the SimpleSAMLphp | |
| 65 | 65 | * root directory. | |
| 66 | 66 | */ | |
| 67 | - 'loggingdir' => 'log/', | ||
| 68 | - 'datadir' => 'data/', | ||
| 67 | + //'loggingdir' => '/var/log/', | ||
| 68 | + //'datadir' => '/var/data/', | ||
| 69 | 69 | 'tempdir' => '/tmp/simplesaml', | |
| 70 | 70 | ||
| 71 | 71 | /* | |
| Back | FazBrowse Home | New Git URL |
0 commit comments