From d43f46c45b7fc373da7e886dab6356a6dfe86f60 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Sat, 25 Sep 2021 13:34:29 +0530 Subject: [PATCH 01/33] commented .travis.yml --- .travis.yml | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index 162cc8bb219..e7adb91c86d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,25 @@ -dist: bionic -sudo: required +# dist: bionic +# sudo: required -branches: - only: - - master +# branches: +# only: +# - master -notifications: - email: false +# notifications: +# email: false -jobs: - include: - # docs pull request or commit to master - - name: "Build Docs" - if: type IN (push, pull_request) AND branch = master - language: node_js - node_js: - - "node" +# jobs: +# include: +# # docs pull request or commit to master +# - name: "Build Docs" +# if: type IN (push, pull_request) AND branch = master +# language: node_js +# node_js: +# - "node" - before_install: - - .travis/affects.sh docs/ .travis || travis_terminate 0 - - cd docs/ - - source .travis/before_install.sh - script: - - source .travis/script.sh +# before_install: +# - .travis/affects.sh docs/ .travis || travis_terminate 0 +# - cd docs/ +# - source .travis/before_install.sh +# script: +# - source .travis/script.sh From 18be4d653d9923841d88a533107d9a649f2f5acf Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Sat, 25 Sep 2021 13:36:48 +0530 Subject: [PATCH 02/33] adding actions.yml --- .github/workflows/actions.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 00000000000..03a54e43bf5 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,46 @@ + + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + name: "importing all the document" + - uses: actions/setup-node@v2 + with: + node-version: '16' + name: "installing the node.js with version 16" + - run: .travis/affects.sh docs/ .travis || exit 0 + if: ${{ github.event_name == ('push' || 'pull_request')}} && ${{github.ref == 'master'}} + name: "Build Docs" + # - run: | + # yarn install + # yarn upgrade docusaurus --latest + # name: "updating the existing docusaurus" + - run: | + cd docs/ + source .travis/before_install.sh + npm ci + source .travis/script.sh + # npm install + # docusaurus-init + + # cd .. + #npm ci + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + name: "running the before_install.sh" + #- run: | + # cd docs/ + # source .travis/script.sh + #name: "running the script.sh" +# - run: > +# cd docs/ +# source .travis/script.sh +# name: "running the .travis/script.sh" From 1e2c5a13dc6bed41aaf744fbe55f358edd6d2d9a Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Sat, 25 Sep 2021 13:52:49 +0530 Subject: [PATCH 03/33] Update actions.yml --- .github/workflows/actions.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 03a54e43bf5..726c14d12b3 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,4 +1,3 @@ - on: push: From a991a86519482655b766f79116b2f16fa49db786 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Sat, 25 Sep 2021 17:13:56 +0530 Subject: [PATCH 04/33] TESTING --- .github/workflows/actions.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 726c14d12b3..e69768d4362 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,4 +1,5 @@ - + + on: push: branches: [master] From 53927d131767e7193da8857515be03323535cd9d Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Sat, 25 Sep 2021 18:41:52 +0530 Subject: [PATCH 05/33] RETEST --- .github/workflows/actions.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index e69768d4362..9cdd938a835 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,5 +1,4 @@ - on: push: branches: [master] From f4a42ccebe261aecf8424387f024aedfb1f0edf1 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Thu, 30 Sep 2021 18:06:45 +0530 Subject: [PATCH 06/33] Update actions.yml --- .github/workflows/actions.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 9cdd938a835..537d98465c2 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -4,7 +4,6 @@ on: branches: [master] pull_request: branches: [master] - jobs: build: runs-on: ubuntu-latest @@ -18,28 +17,12 @@ jobs: - run: .travis/affects.sh docs/ .travis || exit 0 if: ${{ github.event_name == ('push' || 'pull_request')}} && ${{github.ref == 'master'}} name: "Build Docs" - # - run: | - # yarn install - # yarn upgrade docusaurus --latest - # name: "updating the existing docusaurus" - run: | cd docs/ source .travis/before_install.sh npm ci source .travis/script.sh - # npm install - # docusaurus-init - - # cd .. - #npm ci env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - name: "running the before_install.sh" - #- run: | - # cd docs/ - # source .travis/script.sh - #name: "running the script.sh" -# - run: > -# cd docs/ -# source .travis/script.sh -# name: "running the .travis/script.sh" + + From a32abb234fc2c050d16c3e312c4528f25114f7b0 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Thu, 30 Sep 2021 18:20:47 +0530 Subject: [PATCH 07/33] Update publish-docs.sh --- docs/publish-docs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 2a19ba0d0b9..a81e5c93d65 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,6 +21,7 @@ cat > "$CONFIG_FILE" < Date: Thu, 30 Sep 2021 18:32:18 +0530 Subject: [PATCH 08/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index a81e5c93d65..a0a03c1bfc9 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -20,8 +20,6 @@ cat > "$CONFIG_FILE" < Date: Thu, 30 Sep 2021 18:32:28 +0530 Subject: [PATCH 09/33] Update actions.yml --- .github/workflows/actions.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 537d98465c2..7a06d2c0961 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -19,6 +19,8 @@ jobs: name: "Build Docs" - run: | cd docs/ + touch .env + echo VERCEL_TOKEN =${{ secrets.VERCEL_TOKEN }} > .env source .travis/before_install.sh npm ci source .travis/script.sh From c1ecd20013f2be274abe75efbd6566dbfcfb063e Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Thu, 30 Sep 2021 19:48:14 +0530 Subject: [PATCH 10/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index a0a03c1bfc9..7747927cc42 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -17,7 +17,7 @@ fi cat > "$CONFIG_FILE" < Date: Thu, 30 Sep 2021 20:35:21 +0530 Subject: [PATCH 11/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 7747927cc42..a0a03c1bfc9 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -17,7 +17,7 @@ fi cat > "$CONFIG_FILE" < Date: Thu, 30 Sep 2021 20:53:28 +0530 Subject: [PATCH 12/33] ADDING PROJ NAME --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index a0a03c1bfc9..37a733b3d62 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -7,7 +7,7 @@ if [[ -d .vercel ]]; then fi CONFIG_FILE=vercel.json -PROJECT_NAME=spl-solana-com +PROJECT_NAME=solana-program-library PRODUCTION= if [[ -n "$CI" ]]; then From 6ea3e7b6d52a09687191e40626bacdba423294da Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 11:39:09 +0530 Subject: [PATCH 13/33] Update actions.yml --- .github/workflows/actions.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 7a06d2c0961..537d98465c2 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -19,8 +19,6 @@ jobs: name: "Build Docs" - run: | cd docs/ - touch .env - echo VERCEL_TOKEN =${{ secrets.VERCEL_TOKEN }} > .env source .travis/before_install.sh npm ci source .travis/script.sh From 396e93c14a6b3c760a12eef40da55c677c946dca Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 12:02:09 +0530 Subject: [PATCH 14/33] Update env.sh --- ci/env.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/env.sh b/ci/env.sh index d075b259997..dc871a24abb 100644 --- a/ci/env.sh +++ b/ci/env.sh @@ -6,6 +6,7 @@ if [[ -n $CI ]]; then export CI=1 + export CI_BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') if [[ -n $TRAVIS ]]; then export CI_BRANCH=$TRAVIS_BRANCH export CI_BASE_BRANCH=$TRAVIS_BRANCH From 258c8d6913c4d0eccb25d71c947f956dedd30f71 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 15:51:26 +0530 Subject: [PATCH 15/33] adding the "cat" command --- docs/publish-docs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 37a733b3d62..ee9b8628d88 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -7,6 +7,9 @@ if [[ -d .vercel ]]; then fi CONFIG_FILE=vercel.json + +cat vercel.json + PROJECT_NAME=solana-program-library PRODUCTION= From 196c52238fcfd30ea3e68babf652915b8b35e9a9 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 15:57:56 +0530 Subject: [PATCH 16/33] adding the commend to print file --- docs/publish-docs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index ee9b8628d88..96261fdcf66 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -8,7 +8,8 @@ fi CONFIG_FILE=vercel.json -cat vercel.json +# cat vercel.json +echo vercel.json PROJECT_NAME=solana-program-library @@ -23,6 +24,8 @@ cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 16:06:10 +0530 Subject: [PATCH 17/33] removing the cat and echo's --- docs/publish-docs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 96261fdcf66..d605b008ec1 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -9,7 +9,7 @@ fi CONFIG_FILE=vercel.json # cat vercel.json -echo vercel.json +# echo vercel.json PROJECT_NAME=solana-program-library @@ -24,7 +24,7 @@ cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 16:10:30 +0530 Subject: [PATCH 18/33] changing the vercel scope --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index d605b008ec1..5bc91a753ee 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 16:14:11 +0530 Subject: [PATCH 19/33] changing the scope --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 5bc91a753ee..53ee3aa6113 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 16:19:41 +0530 Subject: [PATCH 20/33] changing the scope --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 53ee3aa6113..d605b008ec1 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 16:26:19 +0530 Subject: [PATCH 21/33] changing the scope --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index d605b008ec1..5bc91a753ee 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 16:31:33 +0530 Subject: [PATCH 22/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 5bc91a753ee..0347c8c7653 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -11,7 +11,7 @@ CONFIG_FILE=vercel.json # cat vercel.json # echo vercel.json -PROJECT_NAME=solana-program-library +PROJECT_NAME=spl-solana-com PRODUCTION= if [[ -n "$CI" ]]; then From 38a4f4181189c9b155562491372dcd26072691f8 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 16:53:40 +0530 Subject: [PATCH 23/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 0347c8c7653..571abbfcbd5 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 16:58:23 +0530 Subject: [PATCH 24/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 571abbfcbd5..cd684c798c3 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 17:02:06 +0530 Subject: [PATCH 25/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index cd684c798c3..4fc7e0482a9 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 17:14:51 +0530 Subject: [PATCH 26/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 4fc7e0482a9..0347c8c7653 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -21,7 +21,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 17:27:14 +0530 Subject: [PATCH 27/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 0347c8c7653..5bc91a753ee 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -11,7 +11,7 @@ CONFIG_FILE=vercel.json # cat vercel.json # echo vercel.json -PROJECT_NAME=spl-solana-com +PROJECT_NAME=solana-program-library PRODUCTION= if [[ -n "$CI" ]]; then From d3b8127d39370461abf582168670675eabbb7dee Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 17:35:51 +0530 Subject: [PATCH 28/33] Update actions.yml --- .github/workflows/actions.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 537d98465c2..268be2ea96a 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,4 +1,5 @@ + on: push: branches: [master] From d1adcc0e939d440582c1d4129e63d3a1d66e9a83 Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 17:57:24 +0530 Subject: [PATCH 29/33] Update publish-docs.sh --- docs/publish-docs.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 5bc91a753ee..2a19ba0d0b9 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -7,11 +7,7 @@ if [[ -d .vercel ]]; then fi CONFIG_FILE=vercel.json - -# cat vercel.json -# echo vercel.json - -PROJECT_NAME=solana-program-library +PROJECT_NAME=spl-solana-com PRODUCTION= if [[ -n "$CI" ]]; then @@ -21,10 +17,9 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 18:01:32 +0530 Subject: [PATCH 30/33] Update publish-docs.sh --- docs/publish-docs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 2a19ba0d0b9..1955dc235ea 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -7,7 +7,7 @@ if [[ -d .vercel ]]; then fi CONFIG_FILE=vercel.json -PROJECT_NAME=spl-solana-com +PROJECT_NAME=spl-solana-program-library PRODUCTION= if [[ -n "$CI" ]]; then @@ -17,7 +17,7 @@ fi cat > "$CONFIG_FILE" < Date: Fri, 1 Oct 2021 18:14:12 +0530 Subject: [PATCH 31/33] Update publish-docs.sh --- docs/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/publish-docs.sh b/docs/publish-docs.sh index 1955dc235ea..34804ac3840 100755 --- a/docs/publish-docs.sh +++ b/docs/publish-docs.sh @@ -7,7 +7,7 @@ if [[ -d .vercel ]]; then fi CONFIG_FILE=vercel.json -PROJECT_NAME=spl-solana-program-library +PROJECT_NAME=solana-program-library PRODUCTION= if [[ -n "$CI" ]]; then From e82f8a3c72be6432f3dd35a6ac76a49a5c28f7fd Mon Sep 17 00:00:00 2001 From: joeaba <77398477+joeaba@users.noreply.github.com> Date: Fri, 1 Oct 2021 18:19:28 +0530 Subject: [PATCH 32/33] Update actions.yml --- .github/workflows/actions.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 268be2ea96a..537d98465c2 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,5 +1,4 @@ - on: push: branches: [master] From ec8b69f02cddc474d57a49d67cebb759601884c3 Mon Sep 17 00:00:00 2001 From: axleiro <83293196+axleiro@users.noreply.github.com> Date: Mon, 4 Oct 2021 18:50:07 +0530 Subject: [PATCH 33/33] Update coverage.sh --- coverage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/coverage.sh b/coverage.sh index e21e0fc92fb..e42246ebabd 100755 --- a/coverage.sh +++ b/coverage.sh @@ -92,3 +92,4 @@ ls -l target/cov/$reportName/index.html ln -sfT $reportName target/cov/LATEST exit $test_status +