diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/release.sh | 6 | ||||
-rwxr-xr-x | scripts/travis.sh | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/scripts/release.sh b/scripts/release.sh index 3a8643b5a..ccb93bc44 100755 --- a/scripts/release.sh +++ b/scripts/release.sh | |||
@@ -34,8 +34,8 @@ fi | |||
34 | 34 | ||
35 | version="v$1" | 35 | version="v$1" |
36 | github_prerelease_option="" | 36 | github_prerelease_option="" |
37 | if [[ "$version" = *".pre."* ]]; then | 37 | if [[ "$version" = *"-alpha."* ]] || [[ "$version" = *"-beta."* ]] || [[ "$version" = *"-rc."* ]]; then |
38 | echo "This is a pre-release." | 38 | echo -e "This is a pre-release.\n" |
39 | github_prerelease_option="--pre-release" | 39 | github_prerelease_option="--pre-release" |
40 | fi | 40 | fi |
41 | 41 | ||
@@ -45,7 +45,7 @@ tar_name="peertube-$version.tar.xz" | |||
45 | 45 | ||
46 | changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}') | 46 | changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}') |
47 | 47 | ||
48 | printf "Changelog will be:\\n%s\\n" "$changelog" | 48 | printf "Changelog will be:\\n\\n%s\\n\\n" "$changelog" |
49 | 49 | ||
50 | read -p "Are you sure to release? " -n 1 -r | 50 | read -p "Are you sure to release? " -n 1 -r |
51 | echo | 51 | echo |
diff --git a/scripts/travis.sh b/scripts/travis.sh index 628039ab7..ae4a9f926 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh | |||
@@ -31,6 +31,9 @@ elif [ "$1" = "api-2" ]; then | |||
31 | elif [ "$1" = "api-3" ]; then | 31 | elif [ "$1" = "api-3" ]; then |
32 | npm run build:server | 32 | npm run build:server |
33 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts | 33 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts |
34 | elif [ "$1" = "api-3" ]; then | ||
35 | npm run build:server | ||
36 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-4.ts | ||
34 | elif [ "$1" = "lint" ]; then | 37 | elif [ "$1" = "lint" ]; then |
35 | npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" | 38 | npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" |
36 | 39 | ||