Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create _travis.yml #2

Closed
7yl4r opened this issue Oct 29, 2018 · 6 comments
Closed

create _travis.yml #2

7yl4r opened this issue Oct 29, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@7yl4r
Copy link
Member

7yl4r commented Oct 29, 2018

The ultimate plan here is to get Travis CI to build the Rmd into html, right?

I am not exactly certain how to set up the _travis.yml to do that but have a rough idea. Have you done this on another repo, @bbest ? It would be great to see an example.

@7yl4r 7yl4r added the enhancement New feature or request label Oct 29, 2018
@7yl4r
Copy link
Member Author

7yl4r commented Nov 6, 2018

Hey @eqmh : so I'm looking at the latest travis build and it looks like the Rscript -e 'sessionInfo()' is throwing an error because of a missing DESCRIPTION. I don't know much about it because this is an R thing, but I copied the .travis.yml from marinebon.github.io so we might try copying more things over from there.

7yl4r pushed a commit that referenced this issue Nov 6, 2018
@7yl4r
Copy link
Member Author

7yl4r commented Nov 6, 2018

Yep, that got us to the next step. Now it is failing at the github push because of the auth token.

Now we just need to set up the github auth stuff explained in these notes.

Not sure if that is in travis-ci settings or maybe something more complicated like encryption keys.

@bbest
Copy link
Contributor

bbest commented Nov 7, 2018

Yep, per Encryption keys - Travis CI, you'll need to install the travis Ruby command line to encrypt a variable on your local machine like:

# install Ruby command
gem install travis

# encrypt github password for upload
travis encrypt gh_passwd="secretvalue"

Check out this example: setup Travis continuous integration (CI) to update daily · Issue #2 · SustainSB/sustainsb.github.io

@eqmh
Copy link
Collaborator

eqmh commented Nov 11, 2018

thanks, @bbest!

Just a quick note for future reference:
I got this message when installing travis: You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory

I solved this using:
sudo gem install travis (I found it here)

Just running gem install travis was not working for me.

I got the key after running travis encrypt SOMEVAR="secretvalue" and replaced the one that was in the .travis.yml.

I think we have a new set of issues with Travis.

@7yl4r
Copy link
Member Author

7yl4r commented Nov 12, 2018

xkcd#149

The authentication is still failing in travis:

0.32s$ git push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:${TRAVIS_BRANCH}
remote: Anonymous access to marinebon/p2p.git denied.
fatal: Authentication failed for 'https://@github.com/marinebon/p2p.git/'
The command "git push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:${TRAVIS_BRANCH}" exited with 128.

Did you do literally travis encrypt SOMEVAR="secretvalue" or more like travis encrypt GH_TOKEN="your_token_from_github"?
That long string in .travis.yml encrypts whatever string you give it and the string needs to set the GH_TOKEN variable.

@eqmh
Copy link
Collaborator

eqmh commented Nov 16, 2018

Travis CI seems to be working now. Closing this one out

@eqmh eqmh closed this as completed Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants