-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
chore: Change tests to circle CI #7463
Conversation
.circleci/config.yml
Outdated
command: bash <(curl -s https://codecov.io/bash) | ||
when: on_success | ||
- run: | ||
command: bash scripts/push_api_docs.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use 2 spaces for indentation
.circleci/config.yml
Outdated
- checkout | ||
|
||
- run: | ||
command: ./scripts/test_db.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DB and redis services are missing
65a9d5d
to
adb4a87
Compare
.circleci/config.yml
Outdated
SECRET_KEY: super secret key | ||
PATH: $PATH:${HOME}/google-cloud-sdk/bin | ||
DATABASE_URL: postgresql://test@localhost:5433/test | ||
TEST_DATABASE_URL: postgresql://test@localhost:5433/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know where the env is coming from. Match dredd job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env was set in travis file, I copied them
.circleci/config.yml
Outdated
l- v1.3-dependencies- | ||
|
||
- run: | ||
command: ./scripts/test_db.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed in dredd, not needed here
.circleci/config.yml
Outdated
command: bash <(curl -s https://codecov.io/bash) | ||
when: on_success | ||
- run: | ||
command: bash scripts/push_api_docs.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't work, remove
.circleci/config.yml
Outdated
branches: | ||
only: | ||
- master | ||
- development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the filters for now
.circleci/config.yml
Outdated
environment: | ||
APP_CONFIG: config.TestingConfig | ||
DATABASE_URL: postgresql://postgres@localhost/test | ||
TEST_DATABASE_URL: postgresql://postgres@localhost/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're still using wrong indentation and mixing and matching the amount of spaces. You can literally copy and paste the dredd job section and make edits. And please turn off auto indentation of your IDE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use vim if the IDE is not stopping "intelligently" adding random indentation of spaces which it thinks is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fixed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDE was pycharm was auto indenting on commit
@iamareebjamal - Circle Ci pytest shows
|
venv is not activated. Look at dredd or pytype job |
No description provided.