mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-29 12:02:11 +00:00
2a5c231d3d
* Do run tests in beta
- Test and build app in same lane
- Run tests with swift directly
- Set timeout on build only
- Set GYM_OUTPUT_DIRECTORY inline
- Fix bad build number, broken in db075eb
- Ignore updates to CHANGELOG for testing
- Drop unnecessary exports
- Drop unnecessary test env
- Drop unused PLATFORM .env.* variable
* Work around gym issues in CI
- Set custom build paths for proper clean-up
- Disable xcpretty (seems to hang job)
* Add descriptive names to workflow
- Rename beta to release
- Add job names
* Optimize release workflow
- Use a matrix for multiplatform build
- Only preinstall platform-specific certificates
- Output app version/build early for job reuse
- Do not depend app review on public beta release
- Pull latest commits before pushing/tagging
In release, ci/* scripts require Ruby. Make version an argument
of the commit-release.sh script to fix dependency.
* Import secret to notify external testers or not
* [ci skip] Add CHANGELOG preface in local scripts
* [ci skip] Update links to release via CI
37 lines
933 B
Bash
Executable File
37 lines
933 B
Bash
Executable File
#!/bin/sh
|
|
CURRENT_BRANCH=`git branch --show-current`
|
|
if [[ $CURRENT_BRANCH != "master" ]]; then
|
|
echo "Not on master branch"
|
|
exit 1
|
|
fi
|
|
|
|
# set build number
|
|
BASE_BUILD_NUMBER=`cat .beta-base`
|
|
BUILD_FILE=".beta-build"
|
|
BUILD=$((BASE_BUILD_NUMBER + `git rev-list HEAD --count` + 1))
|
|
ci/set-build.sh $BUILD
|
|
echo $BUILD >$BUILD_FILE
|
|
|
|
# set release notes
|
|
ci/update-release-notes.sh ios &&
|
|
ci/update-release-notes.sh mac &&
|
|
ci/copy-release-notes.sh ios &&
|
|
ci/copy-release-notes.sh mac
|
|
|
|
# pull latest API
|
|
git -C PassepartoutCore/Sources/PassepartoutCore/API pull origin master
|
|
git add */PassepartoutCore/API
|
|
|
|
# add build number
|
|
git add $BUILD_FILE
|
|
git add Passepartout.xcodeproj
|
|
git add *.plist
|
|
|
|
# add release notes
|
|
git add Passepartout/App/*/CHANGELOG.md
|
|
git add Passepartout/App/*/fastlane/metadata/*/release_notes.txt
|
|
|
|
git commit -m "Attempt beta release"
|
|
#VERSION=`ci/version-number.sh ios`
|
|
#git tag "v$VERSION-b$BUILD"
|