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

How might I get only one of my scenarios to run my after_success deploy script? #180

Closed
samselikoff opened this issue Jan 25, 2018 · 3 comments

Comments

@samselikoff
Copy link

samselikoff commented Jan 25, 2018

Right now in my .travis.yml I have this

script:
  # Usually, it's ok to finish the test scenario without reverting
  #  to the addon's original dependency state, skipping "cleanup".
  - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup

after_success:
  - node_modules/.bin/ember deploy production

I think all the scenarios in my matrix are deploying (at least I'm getting Slack notifications for each).

Is it possible to do the deploy for one scenario? Or separately, after all of them have finished?

@kategengler
Copy link
Member

This is definitely more in the realm of configuring travis than ember-try.

The easiest way to do so would be forego use of the travis build matrix and instead use ember try:each ... then the after_success step would only be run after all scenarios had run and passed.

Otherwise you may be able to use https://docs.travis-ci.com/user/build-stages (found from this open issue travis-ci/travis-ci#929)

@rwjblue
Copy link
Member

rwjblue commented Jan 29, 2018

Another option is something like what I did in emberjs/data#5342. It leverages Travis’s new build stages feature...

@samselikoff
Copy link
Author

Awesome, figured someone here could point me in the right direction. Thanks yall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants