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

Setup GitHub actions #617

Merged
merged 38 commits into from
Jan 25, 2021
Merged

Setup GitHub actions #617

merged 38 commits into from
Jan 25, 2021

Conversation

tijcolem
Copy link
Contributor

@tijcolem tijcolem commented Jan 20, 2021

Resolves #616

https://travis-ci.org/ is shutting down and moving to travis-ci.com which uses a credit based system, at least for MacOS runs.
This PR uses GitHub actions to run the Linux and MacOS jobs in replace of Travis. Appeyor CI jobs will remain the same and continue to run there unless something changes. GitHub actions does support Windows instances so we could move 100% of our CI jobs there if desired.

Once all tests are passing and PR is approved we can disable the Travis CI jobs.

Checklist for GitHub Actions CI jobs:

  • Run unit tests, integration, gem packaging and uploads for MacOS 10.15
  • Run unit tests, integration, gem packaging and uploads for Ubuntu 18.04
  • Run integration tests (algo models) on docker compose stack. Uploads docker images. Ubuntu 18.04
  • Removed xcode 10.2 / osx 10.14 runs as these images are not available on GitHub actions.
  • Github actions is configured to build Pull Requests and pushes to any branch (same as was on Travis).

…g errors trying to headless install the OpenStudio.dmg. Error msg: "Unable to create basic Accelerated OpenGL renderer."
…ly uploading gem packages. This should save some time with the uploading as we don't have to call the setup.sh again
@tijcolem tijcolem requested a review from nllong January 22, 2021 00:18
Copy link
Member

@nllong nllong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you did a bunch of work to make this happen--good job!

Should we delete the ci/travis folder?

@@ -86,7 +86,7 @@ rspec_path = File.absolute_path(File.join(__FILE__, './../../../../gems/bin/rspe
::ENV['OS_SERVER_LOG_PATH'] = File.join(output_dir, 'logs', 'rails.log')
::ENV['RAILS_ENV'] = 'local-test'

#If this is a travis build and it's BUILD_TYPE=test we want to omit the openstudio_algo_spec.rb tests
#If this is a CI build (travis, github actions, etc..) and the BUILD_TYPE=test omit the openstudio_algo_spec.rb tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

salt = "8 octets" # or nil
text = "abcdefghijklmnopqrstuvwxyz"

crypt_by_password(alg, pass, salt, text)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line ending needed

@@ -0,0 +1,54 @@
#!/usr/bin/env ruby
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this is a new file to provide some basic salting/hashing of our passwords

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've had some issues with openssl in the past so @anyaelena added this as a sanity check during the gem builds.

@@ -0,0 +1,20 @@
# empty dir for export
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet! finally building package from the CI!

@tijcolem
Copy link
Contributor Author

@nllong We can remove the ci/travis folder. I left it in the event we needed to move back during the time of transition, but like all "temporary" things, it'll just live there indefinitely if we don't take care of it now. =) I'll make this change.

@nllong
Copy link
Member

nllong commented Jan 22, 2021

@nllong We can remove the ci/travis folder. I left it in the event we needed to move back during the time of transition, but like all "temporary" things, it'll just live there indefinitely if we don't take care of it now. =) I'll make this change.

Cool, thanks. Likewise, are we deprecating AppVeyor in favor of Windows GH actions.

@tijcolem
Copy link
Contributor Author

AppVeyor remains the same. For now anyway. I like the RDP debug features that AppVeyor provides (used it many times), so unless they make changes like Travis, I'd vote to keep it the same. GitHub actions seems to provide the same debuging capabilities - https://github.com/stascorp/rdpwrap - but this doesn't seem as easy to enable/disable like AppVeyor.

@tijcolem
Copy link
Contributor Author

tijcolem commented Jan 25, 2021

Okay, travis CI is now removed and disabled.

@tijcolem tijcolem merged commit f86d1ba into develop Jan 25, 2021
@tijcolem tijcolem deleted the setup_github_actions branch January 25, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move Linux and MacOS CI jobs to GitHub Actions
2 participants