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

chore: Change tests to circle CI #7463

Merged
merged 11 commits into from
Nov 25, 2020
Merged

Conversation

codedsun
Copy link
Contributor

@codedsun codedsun commented Nov 24, 2020

No description provided.

@auto-label auto-label bot added the feature label Nov 24, 2020
command: bash <(curl -s https://codecov.io/bash)
when: on_success
- run:
command: bash scripts/push_api_docs.sh
Copy link
Member

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 Show resolved Hide resolved
- checkout

- run:
command: ./scripts/test_db.sh
Copy link
Member

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

@codedsun codedsun force-pushed the circleci branch 2 times, most recently from 65a9d5d to adb4a87 Compare November 25, 2020 15:04
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
Copy link
Member

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

Copy link
Contributor Author

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

l- v1.3-dependencies-

- run:
command: ./scripts/test_db.sh
Copy link
Member

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

command: bash <(curl -s https://codecov.io/bash)
when: on_success
- run:
command: bash scripts/push_api_docs.sh
Copy link
Member

Choose a reason for hiding this comment

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

Won't work, remove

branches:
only:
- master
- development
Copy link
Member

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

environment:
APP_CONFIG: config.TestingConfig
DATABASE_URL: postgresql://postgres@localhost/test
TEST_DATABASE_URL: postgresql://postgres@localhost/test
Copy link
Member

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.

Copy link
Member

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

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 fixed it

Copy link
Contributor Author

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

@codedsun
Copy link
Contributor Author

@iamareebjamal - Circle Ci pytest shows

#!/bin/bash -eo pipefail
pytest tests -v --cov=.
/bin/bash: pytest: command not found

@iamareebjamal
Copy link
Member

venv is not activated. Look at dredd or pytype job

.circleci/config.yml Outdated Show resolved Hide resolved
@iamareebjamal iamareebjamal changed the title feat: Added test in circle ci, travis removed chore: Change tests to circle CI Nov 25, 2020
@auto-label auto-label bot added chore and removed feature labels Nov 25, 2020
@iamareebjamal iamareebjamal merged commit abeb343 into fossasia:development Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants