@@ -643,20 +643,22 @@ on Travis-CI and are only accessible from the pandas-dev/pandas repository. The
643643credentials won't be available on forks of pandas. Here are the steps to run
644644gbq integration tests on a forked repository:
645645
646- #. First, complete all the steps in the `Encrypting Files Prerequisites
647- <https://docs.travis-ci.com/user/encrypting-files/> `__ section.
648- #. Sign into `Travis <https://travis-ci.org/ >`__ using your GitHub account.
649- #. Enable your forked repository of pandas for testing in `Travis
650- <https://travis-ci.org/profile/> `__.
651- #. Run the following command from terminal where the current working directory
652- is the ``ci `` folder::
653-
654- ./travis_encrypt_gbq.sh <gbq-json-credentials-file> <gbq-project-id>
655-
656- #. Create a new branch from the branch used in your pull request. Commit the
657- encrypted file called ``travis_gbq.json.enc `` as well as the file
658- ``travis_gbq_config.txt ``, in an otherwise empty commit. DO NOT commit the
659- ``*.json `` file which contains your unencrypted private key.
646+ #. Go to `Travis CI <https://travis-ci.org/ >`__ and sign in with your GitHub
647+ account.
648+ #. Click on the ``+ `` icon next to the ``My Repositories `` list and enable
649+ Travis builds for your fork.
650+ #. Click on the gear icon to edit your travis build, and add two environment
651+ variables:
652+
653+ - ``GBQ_PROJECT_ID `` with the value being the ID of your BigQuery project.
654+
655+ - ``SERVICE_ACCOUNT_KEY `` with the value being the contents of the JSON key
656+ that you downloaded for your service account. Use single quotes around
657+ your JSON key to ensure that it is treated as a string.
658+
659+ For both environment variables, keep the "Display value in build log" option
660+ DISABLED. These variables contain sensitive data and you do not want their
661+ contents being exposed in build logs.
660662#. Your branch should be tested automatically once it is pushed. You can check
661663 the status by visiting your Travis branches page which exists at the
662664 following location: https://travis-ci.org/your-user-name/pandas/branches .
0 commit comments