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

Failing on Travis #27

Closed
sir-dunxalot opened this issue Jun 15, 2015 · 8 comments
Closed

Failing on Travis #27

sir-dunxalot opened this issue Jun 15, 2015 · 8 comments

Comments

@sir-dunxalot
Copy link

I updated an addon's test suite and the build began failing on Travis with the following error:

The command "ember try $EMBER_TRY_SCENARIO test" exited with 1.

The test suite is passing locally. I have replicated the issue with versions 0.0.6 and 0.0.7 of this addon.

Is this a problem on your end or mine?

Thanks!

@sir-dunxalot
Copy link
Author

Travis.yml file:

---
language: node_js
node_js:
  - "0.12"

sudo: false

cache:
  directories:
    - node_modules

env:
  - EMBER_TRY_SCENARIO=default
  - EMBER_TRY_SCENARIO=ember-release
  - EMBER_TRY_SCENARIO=ember-beta
  - EMBER_TRY_SCENARIO=ember-canary

matrix:
  fast_finish: true
  allow_failures:
    - env: EMBER_TRY_SCENARIO=ember-canary

before_install:
  - export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
  - "npm config set spin false"
  - "npm install -g npm@^2"

install:
  - npm install -g bower
  - npm install
  - bower install

script:
  - ember try $EMBER_TRY_SCENARIO test

@mike-north
Copy link
Member

@sir-dunxalot can you link to the build log so we can get more information?

@sir-dunxalot
Copy link
Author

@mike-north
Copy link
Member

It's possible that this is a phantomjs issue. Have you tried using PhantomJS 2.0 with travis?

not ok 6 PhantomJS 1.9 - Acceptance | iframe loading: visiting /iframe-loading
    ---
        actual: >
            null
        message: >
            Expected 7 assertions, but 8 were run
        Log: >
    ...

@sir-dunxalot
Copy link
Author

I have not but I'll look into it and report back. I don't suppose you know how to upgrade the phantom JS version off the top of your head?

@kategengler
Copy link
Member

The command "ember try $EMBER_TRY_SCENARIO test" exited with 1. is from Travis.

That command is exiting non-zero because you have a failing test.

@mike-north
Copy link
Member

@sir-dunxalot you could do something like this

before_install:
  - mkdir travis-phantomjs
  - wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
  - tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
  - export PATH=$PWD/travis-phantomjs:$PATH
  - "npm config set spin false"
  - "npm install -g npm@^2"

In any case your issue does not appear to be a problem with ember-try, but rather a legitemate test failure

@sir-dunxalot
Copy link
Author

Ok. I'll close this for now and will see if further debugging can shed some light on the issue. Thanks for the help.

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