renaming app to Flipper

Summary: rename all visible references of Sonar to Flipper. Changes endpoint URLs to the new repo address.

Reviewed By: passy

Differential Revision: D9082100

fbshipit-source-id: 2ab8b680a19c23d80050e8e768379c29d66acfca
This commit is contained in:
Daniel Büchele
2018-08-06 10:30:55 -07:00
committed by Facebook Github Bot
parent 2c48afdf04
commit 134a0d96c5
8 changed files with 51 additions and 42 deletions

View File

@@ -2,23 +2,26 @@
"command": "SandcastleUniversalCommand",
"user": "__USER__",
"args": {
"name": "Release public Sonar build",
"name": "Release public Flipper build",
"oncall": "danielbuechele",
"steps": [
{
"name": "Clone from GitHub",
"required": true,
"shell": "git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/Sonar.git ../xplat/sonar-public"
"shell":
"git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/flipper.git ../xplat/sonar-public"
},
{
"name": "Copy Sandcastle script",
"required": true,
"shell": "cp ../xplat/sonar/scripts/sandcastle-build.sh ../xplat/sonar-public/scripts/sandcastle-build.sh"
"shell":
"cp ../xplat/sonar/scripts/sandcastle-build.sh ../xplat/sonar-public/scripts/sandcastle-build.sh"
},
{
"name": "Create build",
"required": true,
"shell": "cd ../xplat/sonar-public/scripts && ./sandcastle-build.sh __VERSION__"
"shell":
"cd ../xplat/sonar-public/scripts && ./sandcastle-build.sh __VERSION__"
},
{
"name": "Copy artifacts for syncing",
@@ -30,26 +33,25 @@
"step_type": "sync_step",
"from": "remote",
"to": "local",
"paths": [
"Sonar-mac.zip",
"manifest.json"
]
"paths": ["Flipper-mac.zip", "manifest.json"]
},
{
"name": "Publish to github",
"required": true,
"shell": "curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"target_commitish\": \"master\", \"name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"body\": \"\", \"draft\": false, \"prerelease\": false}' https://api.github.com/repos/facebook/Sonar/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)",
"shell":
"curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"target_commitish\": \"master\", \"name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"body\": \"\", \"draft\": false, \"prerelease\": false}' https://api.github.com/repos/facebook/flipper/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)",
"shell_type": "SandcastleLocalShell"
},
{
"name": "Upload",
"required": true,
"shell": "curl -x fwdproxy:8080 $(cat RELEASE.json | jq -r '.upload_url' | sed -e 's#{?name,label}##')'?access_token='$(secrets_tool get SONAR_GITHUB_TOKEN)'&name=Sonar.zip' --header 'Content-Type: application/zip' --upload-file $SANDCASTLE_NEXUS'/Sonar-mac.zip' -X POST",
"shell":
"curl -x fwdproxy:8080 $(cat RELEASE.json | jq -r '.upload_url' | sed -e 's#{?name,label}##')'?access_token='$(secrets_tool get SONAR_GITHUB_TOKEN)'&name=Flipper.zip' --header 'Content-Type: application/zip' --upload-file $SANDCASTLE_NEXUS'/Flipper-mac.zip' -X POST",
"shell_type": "SandcastleLocalShell"
}
]
},
"alias": "sonar_release_public_build",
"alias": "flipper_release_public_build",
"capabilities": {
"vcs": "fbcode-fbsource",
"type": "lego-mac"

View File

@@ -1,7 +1,7 @@
#!/bin/bash
echo "✨ Creating new Sonar release on GitHub..."
MAJOR=$(curl -x fwdproxy:8080 --silent https://raw.githubusercontent.com/facebook/Sonar/master/package.json | jq -r '.version' | sed -E 's/[0-9]+$//g')
echo "✨ Creating new Flipper release on GitHub..."
MAJOR=$(curl -x fwdproxy:8080 --silent https://raw.githubusercontent.com/facebook/flipper/master/package.json | jq -r '.version' | sed -E 's/[0-9]+$//g')
echo "What should the patch version of the next release be? (v${MAJOR}_)"

View File

@@ -2,23 +2,25 @@
"command": "SandcastleUniversalCommand",
"user": "__USER__",
"args": {
"name": "Release public Sonar build",
"name": "Release public Flipper build",
"oncall": "danielbuechele",
"steps": [
{
"name": "Clone from GitHub",
"required": true,
"shell": "git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/Sonar.git ../xplat/sonar-public"
"shell":
"git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/flipper.git ../xplat/sonar-public"
},
{
"name": "Publish to github",
"required": true,
"shell": "curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v__VERSION__\", \"target_commitish\": \"master\", \"name\": \"v__VERSION__\", \"body\": \"\", \"draft\": false, \"prerelease\": true}' https://api.github.com/repos/facebook/Sonar/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)",
"shell":
"curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v__VERSION__\", \"target_commitish\": \"master\", \"name\": \"v__VERSION__\", \"body\": \"\", \"draft\": false, \"prerelease\": true}' https://api.github.com/repos/facebook/flipper/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)",
"shell_type": "SandcastleLocalShell"
}
]
},
"alias": "sonar_release_ios_public_build",
"alias": "flipper_release_ios_public_build",
"capabilities": {
"vcs": "fbcode-fbsource",
"type": "lego-mac"