Skip to content

Conversation

@bshaffer
Copy link
Contributor

Removes all composer lock files and attempts to disable travis tests on master

@bshaffer bshaffer changed the title Remove composer lock files Fixes System Tests Sep 24, 2018
ENV GOOGLE_ALT_PROJECT_ID="php-docs-samples-PHP_VERSION"
ENV FIRESTORE_PROJECT_ID="php-docs-samples-fs-PHP_VERSION"

ENTRYPOINT /bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is more appropriate to define those env vars is in kokoro build config. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

.travis.yml Outdated
# We use the envvar "IS_PULL_REQUEST" for both kokoro and travis
- IS_PULL_REQUEST=$TRAVIS_PULL_REQUEST_BRANCH
# This is always set to true so that we skip the full test suite in travis
- IS_PULL_REQUEST=true
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use another env var for skipping the full test suite?
I think this certainly also work, but it doesn't seem right to use IS_PULL_REQUEST just for skipping some tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this was a quick fix. Now that these tests are passing I will stop running Travis tests all together!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Travis is now removed!

$socket = "/cloudsql/${connection}";

if (!file_exists($socket)) {
$this->markTestSkipped(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not fail instead of skipping?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I didn't want to try setting up the cloud_sql_proxy on Kokoro yet. It's not a great excuse, you caught me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would like to get the cloud_sql_proxy running in another PR, as this will take more consideration to get right.

adds datastore/api to alt-project tests
@bshaffer bshaffer merged commit dec932a into master Sep 27, 2018
@bshaffer bshaffer deleted the remove-composer-lock branch September 27, 2018 03:12
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

Successfully merging this pull request may close these issues.

3 participants