-
Notifications
You must be signed in to change notification settings - Fork 94
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
Load/run rb file for smoke test #81
Comments
It's ruby code so you can do anything you want. Execute a rake task: smoke_test: |
raise "smoke failed" unless system("rake test:smoke SMOKE_TEST_HOSTNAME=#{host_name}") Run a python verify script: smoke_test: |
raise "smoke failed" unless system("python verify.py #{host_name}") load a ruby script smoke_test: |
load "smoke_test.rb" |
I tried below but it didn't work as it said the rb file didn't exist. Now you've confirmed it should work I'll look into it again smoke_test: |
load "smoke_test.rb" |
@wpc do you know if eb_deployer defines an environment variable for the environment set? I ran |
That's weird, eb_deployer do not set any environment variables. Use |
@wpc I'll look if it's being set on the CI server. In the smoke test examples it defines a variable |
i guess you can do smoke_test: |
SMOKE_TEST_HOST_NAME="#{host_name}"
load "smoke_test.rb" then reference the host name by constant. |
Is it possible to load an rb file for the smoke test rather than being inline?
If so can you share an example?
The text was updated successfully, but these errors were encountered: