aboutsummaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorJulien Carsique <julien.carsique@sonarsource.com>2023-12-27 19:01:16 +0100
committersonartech <sonartech@sonarsource.com>2024-01-23 20:04:15 +0000
commitd26c2ca7db6af4b2cfc24d3f560e5354d0692f9e (patch)
treea97d938a49630b8ed3c61ccc22dbb8eb52978deb /.travis
parent29f0fde0bf04408dd3c35d5122bacda8289e6926 (diff)
downloadsonarqube-d26c2ca7db6af4b2cfc24d3f560e5354d0692f9e.tar.gz
sonarqube-d26c2ca7db6af4b2cfc24d3f560e5354d0692f9e.zip
BUILD-3755 migrate Travis to Cirrus CI
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/run_iris.sh29
-rwxr-xr-x.travis/setup_environment.sh21
-rwxr-xr-x.travis/setup_ramdisk.sh22
3 files changed, 0 insertions, 72 deletions
diff --git a/.travis/run_iris.sh b/.travis/run_iris.sh
deleted file mode 100755
index d08dec56483..00000000000
--- a/.travis/run_iris.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-set +x
-
-VERSION="\[RELEASE\]"
-HTTP_CODE=$(\
- curl \
- --write-out '%{http_code}' \
- --location \
- --remote-name \
- --user "$ARTIFACTORY_PRIVATE_USERNAME:$ARTIFACTORY_API_KEY" \
- "$ARTIFACTORY_URL/sonarsource-private-releases/com/sonarsource/iris/iris/$VERSION/iris-$VERSION-jar-with-dependencies.jar"\
-)
-
-if [ "$HTTP_CODE" != "200" ]; then
- echo "Download $VERSION failed -> $HTTP_CODE"
- exit 1
-else
- echo "Downloaded $VERSION"
-fi
-
-java \
- -Diris.source.projectKey=org.sonarsource.sonarqube:sonarqube-private \
- -Diris.source.url=https://next.sonarqube.com/sonarqube \
- -Diris.source.token=$NEXT_TOKEN \
- -Diris.destination.projectKey=sonarqube \
- -Diris.destination.url=https://next.sonarqube.com/sonarqube \
- -Diris.destination.token=$NEXT_TOKEN \
- -Diris.maxcountposts=50 \
- -jar iris-\[RELEASE\]-jar-with-dependencies.jar
diff --git a/.travis/setup_environment.sh b/.travis/setup_environment.sh
deleted file mode 100755
index 2f11f417551..00000000000
--- a/.travis/setup_environment.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-# Sets up the environment to be able to send notifications to burgr
-# use generic environments to remove coupling with Travis ; see setup_promote_environment
-
-export GITHUB_REPO=${TRAVIS_REPO_SLUG}
-export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
-export PIPELINE_ID=${BUILD_NUMBER}
-if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
- export GIT_SHA1=${TRAVIS_COMMIT} # $CIRRUS_CHANGE_IN_REPO
- export GIT_BRANCH=$TRAVIS_BRANCH
- export STAGE_TYPE="branch"
- export STAGE_ID=${GIT_BRANCH}
-else
- export GIT_SHA1=${TRAVIS_PULL_REQUEST_SHA}
- export GIT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
- export PULL_REQUEST_BASE_BRANCH=$TRAVIS_BRANCH
- export PULL_REQUEST_NUMBER=$TRAVIS_PULL_REQUEST
- export STAGE_TYPE="pr_number"
- export STAGE_ID=${PULL_REQUEST_NUMBER}
-fi
-echo "======= SHA1 is ${GIT_SHA1} on branch '${GIT_BRANCH}'. Burgr stage '${STAGE_TYPE} with stage ID '${STAGE_ID} ======="
diff --git a/.travis/setup_ramdisk.sh b/.travis/setup_ramdisk.sh
deleted file mode 100755
index 75e2492d9cd..00000000000
--- a/.travis/setup_ramdisk.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-set -euo pipefail
-
-RED='\033[0;31m'
-NC='\033[0m' # No Color
-printf "${RED}SETUP RAMDISK${NC}\n"
-printf "${RED}disk size before build${NC}\n"
-df -h
-du -sh $HOME
-du -sh $TRAVIS_BUILD_DIR
-
-printf "${RED}move original TRAVIS_BUILD_DIR${NC}\n"
-sudo mv $TRAVIS_BUILD_DIR $TRAVIS_BUILD_DIR.ori
-printf "${RED}create ramdisk mount point${NC}\n"
-sudo mkdir -p $TRAVIS_BUILD_DIR
-printf "${RED}create ramdisk${NC}\n"
-sudo mount -t tmpfs -o size=8192m tmps $TRAVIS_BUILD_DIR
-printf "${RED}copy TRAVIS_BUILD_DIR to ramdisk${NC}\n"
-time sudo cp -R $TRAVIS_BUILD_DIR.ori/. $TRAVIS_BUILD_DIR
-printf "${RED}give permissions to travis on its TRAVIS_BUILD_DIR in ramdisk${NC}\n"
-sudo chown -R travis:travis $TRAVIS_BUILD_DIR
-