From 15e4a12a39f934046717fd9e31a037f90a3dd020 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 12 Sep 2021 01:04:53 -0700 Subject: [PATCH] Delete Travis CI files --- .travis.yml | 65 ---------------------------------------- files/frost.tar.enc | Bin 9232 -> 0 bytes generate-apk-release.sh | 58 ----------------------------------- 3 files changed, 123 deletions(-) delete mode 100644 .travis.yml delete mode 100644 files/frost.tar.enc delete mode 100755 generate-apk-release.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 355386f4d..000000000 --- a/.travis.yml +++ /dev/null @@ -1,65 +0,0 @@ -language: android -jdk: - - openjdk11 -env: - global: - - ANDROID_API=30 - - EMULATOR_API=19 - - ANDROID_BUILD_TOOLS=30.0.2 - - ANDROID_COMMAND_LINE_TOOLS=7583922 - - ANDROID_HOME=~/android-sdk - - secure: X3J97ccW+8K0bXPXhX608vPx7Pr/G4ju7quxydqMaYGgClHxoL/WpXOBAyyllde5P28PY4kioaqcI21BEhnAw0QUbmnzVLA1Qd5VS7aMPHpEnInKuOxGZ2d570OZd1f+ozFVt05vzG0VBJlBAkVhz2GWNxQdmIV1sO28MH526JMuYaEREuuywVSZmAeY7AAbW9MeCC2wvHvNmhk2nk6NLRQcsrDHcBsimy9fnnQ9lT/QsvToi1ZJd/MN7YkGDUULR+YmaotBzG546UJ1EiZQX91bFEJfP0oL43Pk7t5snzmHnKjLOr8Mt5QsIUXaiy/uzhUVmuDh1i0GEpZmhqM7nz/T6P7ogaLbbyJeauNmf15nu+e3hSvNiTzKyIwfSSflv8Do3g8/Eo3dKfIi3I8/OKF/uZ76kywh2LRqtZAqxRDiAMDZVwsRgD4aztoWm5AWa3tSoGy1J7i1eoqX6bNqokRbjgheTqcjN13kCdSZi3pZX7UBYm2Vumhn4izhTume19Rh9SqTmRgQ8jM7ynxHh7vVsJPPJG0HbQ623xz+d9mtXGy1fAb0dcUJMXdOhFN3m6AnKuHiF7cmsqje7Euk/TOZyqZmu0xEhTkugMbNKwGrklJiwRr3IoLtPdhLE38u3/auloUqBQ4K/iA9ZdhAreTSHEaI9d3J4N6kqCj3U30= -android: - components: - - tools - - platform-tools - - build-tools-$ANDROID_BUILD_TOOLS - - android-$ANDROID_API - - extra-android-support - - extra-android-m2repository - - extra-google-m2repository - licenses: - - ".+" -git: - depth: 500 -before_install: - # Get Java 11 compatible tools: https://stackoverflow.com/a/68534598/4407321 - - touch $HOME/.android/repositories.cfg - - wget "https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_COMMAND_LINE_TOOLS}_latest.zip" -O commandlinetools.zip - - unzip commandlinetools.zip -d $ANDROID_HOME/ - - yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${ANDROID_API}" --sdk_root=$ANDROID_HOME - - yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" --sdk_root=$ANDROID_HOME - # Get Frost content - - openssl aes-256-cbc -K $encrypted_0454d0cf846c_key -iv $encrypted_0454d0cf846c_iv - -in files/frost.tar.enc -out files/frost.tar -d - - tar xvf files/frost.tar -after_success: - - "./generate-apk-release.sh" -script: - - "./gradlew --quiet androidGitVersion" - - "./gradlew spotlessCheck lintReleaseTest testReleaseUnitTest assembleReleaseTest" -notifications: - email: false - slack: - rooms: - secure: NC8a55iKsav9il4rNCtNZN6avovtv6ZpdJjyTRABxHp1zImn9Cuxaplecgzp8fRJqP8qLqPB/cvHG2WCSjyfB6g4rBIU/1NvtL4sLe666Mw08upTDGKwhOyr5n1MEcmpkEJaJyuh9KoNK2+8PmUmdK+1oGXYy6Sa+a8Izzpaaa05QYiKiT8wIMFSk6+kocHBNkpAxTf2l/ywChhNJcappEXNjVCkEBL5S1TUdC//lPdDmsX6o+2fvs2goyxkYJl5voL34NLf2VBxDQUd/Nu0KUhwQW+aiV4xUNZSYyKi3YjPf/SBX20YLtRbrkpqct0M93BhwjCgFlO2wdyCyUc5dMde0SJ6h42yvhZKGKTkvbO353rDqs9hhiQzVtrTr2MNkefw6eJcPUJj2yPm4hUp4ppWRHunl/7Eha78Gde4MLrwDtDWNeByPWNNYpjr8CqQtmZ0JjT8PuZB2iHyNDr8TjXQot16zQ2Xg7oDmedUymiZmjRxI812zHIAP3nqT4IKd7ji0Bi9XxSqygfqQyMBCc9DhzF8LTgJvmrZ3ValSKPcGEqLZdeaVO9VmJOnZ/AY5vBrkjaWBmArFW5m5sLOVtlS49VavN/bSdgoRXqUatcNxKyUNaJVgA4W6XnNiXB61FFkC1gDvC/7OyS/PIOse3lPehL+5Z2re92zTEYhS8s= - on_success: always - on_failure: always - template: - - Frost Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of - %{repository}@%{branch} %{result} in %{duration} - - "%{commit_subject}" - - "" -sudo: false -branches: - except: - - master - - l10n_dev -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -rf $HOME/.gradle/caches/*/plugin-resolution/ -cache: - directories: - - "$HOME/.gradle/caches/" - - "$HOME/.gradle/wrapper/" \ No newline at end of file diff --git a/files/frost.tar.enc b/files/frost.tar.enc deleted file mode 100644 index 0455312674e654985990fcce5559a1109e8722c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9232 zcmV+rB=6fQd(Z%0;>*(~(e60N&X3X82KvH7(8C@ZB4Pw0zY}#JVsOJ0$=$mF2nit= zg+WF1IHV0@rd_!sy=Lsi;l_o(azHb5ZJ-j?*=OY5uec!iU1FBaZdmXUWPQj1#XJL{C9p^EN_SOP{UzI!U-Cb&&jcbG5GID4?sU9F z-VmTP{)a4-C^PWcPiCSrj#;9tO`Jg;R=t(HL`Z)D15Ovwz*P}5Rp;;#tYkFJaSVAU zZ~9>g5t^$N*wwb``=RFuYp=C5cfJz=mrQ zZ+#toGLNEZs{|F!RGPi@*^@WL;Ir+faA%r!cIlJ)VXKe^e_R~ZpsAW{5%l2#bClw? zxbb^$)FzK~OGm&RHjsN=148uWK>ry^DdMsq?((h#Em&9=KlM#U^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~^QTp5$qD(Q%m}p;3K|!f^fn-M^Tr&acfT92EzCYVnv8n}pgCAW| z(y315l0tm2X*;j}?jjFTTdZfEGVr~(oHtHEQQ5SkB-Rg+uIN9iWS#Xal@y8iG$e!V zfC6&}AR6QV(RMTikDaU~JMr-=7CZ<&V(_^A6}{i1cb~YTn|(772r8mC64glDsx&CO zgA;qd6M5muL>4{?B;V|61a_QjYct)Jvd=CGlY2qutVlEAW2{YD*rB9VS>(232a7ir znSrDMm{6Tf4Xh?untmW2J=5s=MY#1#fH96lb4#~iq)I=Fq3X&PcT)5Cp- z4a-Hyo-xw@ph?GG`ls}J_)UQpV=nP6%xsb_A%oqj&G^6oeu{l!!(ICy4(>vR@KhWx zsSfURJGoN;6xsb-L4+gIP{28AG8`W zUVruT>*4>{t0S7ZaY=|cy`76n)>c@Y-4@{o%kpaV+NgrdkwhbocE=6Nezhc%*?e9T zf3nuYfzJ+tK1yg2q41;4Z_3->~Z2@PJRFa_AL((=od zTy3Qw#u>f~8eVjZGxHP+{4J>H*)Yg+a2l4@w6)J~8{zlwgrsx%7Z<1&_^IbXE+&*4 z&D@AQwH-?ySi`J!jvbbj^iuMOVO{4#jIzN&Hk%m_K;Ky^*5xDU*0lHe;2y^!=L340 zYRAnvTS&f0gZUmmXtaO~r78vz6>dqq$)%qi%OXFA;o;|eOUDalMyIr|>6FQpmiO%1 z!uq~oR3dlIW#v`m5wY)+uunl>{F{(omtX#evkNcgM6(yJMJJ6&>?vo%Jnyen*f%Ojn diff --git a/generate-apk-release.sh b/generate-apk-release.sh deleted file mode 100755 index a1438a6c8..000000000 --- a/generate-apk-release.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -# config -# make sure the GITHUB_API_KEY is encrypted and inside the travis file -# travis encrypt GITHUB_API_KEY=super_secret --add env.global -# Note - gradle 3.0.0 generates outputs in their own folders - ctrl + f > releaseTest - -RELEASE_REPO=AllanWang/Frost-for-Facebook-APK-Builder -USER_AUTH=PitchedApps -EMAIL=pitchedapps@gmail.com -MODULE_NAME=app -VERSION_KEY=Frost -# Make version key different from module name - -# create a new directory that will contain our generated apk -mkdir ${HOME}/${VERSION_KEY}/ -# copy generated apk from build folder to the folder just created -cp -a ${MODULE_NAME}/build/outputs/apk/releaseTest/. ${HOME}/${VERSION_KEY}/ -printf "Moved apks\n" -ls -a ${HOME}/${VERSION_KEY} -if [[ -z "$(find ${HOME}/${VERSION_KEY} -name '*.apk')" ]]; then - echo "No apks found" - exit 1 -fi - -# go to home and setup git -echo "Clone Git" -cd $HOME -git config --global user.email "$EMAIL" -git config --global user.name "$USER_AUTH CI" -# clone the repository in the buildApk folder -git clone --quiet --branch=master https://${USER_AUTH}:${GITHUB_API_KEY}@github.com/${RELEASE_REPO}.git master > /dev/null -# create version file -echo "Create Version File" -cd master -echo "${VERSION_KEY} v${TRAVIS_BUILD_NUMBER}" > "${VERSION_KEY}.txt" - -echo "Push Version File" -git remote rm origin -git remote add origin https://${USER_AUTH}:${GITHUB_API_KEY}@github.com/${RELEASE_REPO}.git -git add -f . -git commit -m "Travis build ${TRAVIS_BUILD_NUMBER} pushed [skip ci]" -git push -fq origin master > /dev/null - -echo "Create New Release" -API_JSON="$(printf '{"tag_name": "v%s","target_commitish": "master","name": "v%s","body": "Automatic Release v%s for branch %s %s","draft": false,"prerelease": false}' ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BUILD_NUMBER} "\`${TRAVIS_BRANCH}\`" "\nhttps://github.com/${TRAVIS_REPO_SLUG}/commit/${TRAVIS_COMMIT}")" -newRelease="$(curl --data "${API_JSON}" -H "Authorization: token ${GITHUB_API_KEY}" https://api.github.com/repos/${RELEASE_REPO}/releases)" -rID="$(echo "$newRelease" | jq ".id")" - -cd ${HOME}/${VERSION_KEY} -echo "Push apk to $rID" -for apk in $(find *.apk -type f); do - apkName="${apk::-4}" - printf "Apk $apkName\n" - curl -H "Authorization: token ${GITHUB_API_KEY}" "https://uploads.github.com/repos/${RELEASE_REPO}/releases/${rID}/assets?name=${apkName}-v${TRAVIS_BUILD_NUMBER}.apk" --header 'Content-Type: application/zip' --upload-file ${apkName}.apk -X POST -done - -echo -e "Done\n" \ No newline at end of file