Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
run selenium tests ony when sauce connector is configured
only run the selenium tests whe SAUCE_USERNAME & SAUCE_ACCESS_KEY are
configured. That way a PR from an external, that does not have access to
the sauce env., will not trigger the selenium tests
  • Loading branch information
individual-it committed Jan 30, 2017
commit a26ac5501ecfa3ad55fe43624eb75de2143e3624
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:
global:
- TEST_DAV=$(tests/travis/changed_app.sh dav)
- TC=litmus-v2
- TEST_SELENIUM=1
- SRV_HOST_NAME=owncloud
- SRV_HOST_PORT=8888
matrix:
Expand All @@ -39,6 +38,7 @@ addons:

before_install:
- make
- if [ ! -z "$SAUCE_USERNAME" ] && [ ! -z "$SAUCE_ACCESS_KEY" ]; then export TEST_SELENIUM=1 ; else export TEST_SELENIUM=0 ; fi
Copy link
Member

Choose a reason for hiding this comment

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

let's add this as a test case just like we do with caldav, carddav.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is to prevent the tests to run if a PR comes from a remote fork.
So if we make it a test-case by setting TEST_SELENIUM=1 and the sauce_connector is setup in owncloud/core and I make a fork to individual-it/core commit something and make a PR. Travis would try to build that PR but the selenium tests would fail because $SAUCE_USERNAME & $SAUCE_ACCESS_KEY are not set

Copy link
Member

Choose a reason for hiding this comment

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

I understand that part - we can still make this work (somehow ;-) )

But on travis I'd like to see an explicit job with TC=selenium listed

- sh -c "if [ '$TEST_DAV' = '1' ] || [ '$TEST_SELENIUM' = '1' ]; then bash tests/travis/before_install.sh $DB; fi"

install:
Expand Down