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

Fixed multiple bugs #128

Merged
merged 9 commits into from
Dec 11, 2023

apply black formatter changes

8e299a3
Select commit
Loading
Failed to load commit list.
Merged

Fixed multiple bugs #128

apply black formatter changes
8e299a3
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Dec 10, 2023 in 2m 16s

Build Passed

The build passed. This is a change from the previous build, which failed.

Details

This is a normal build for the raj/bug-fixes branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Focal)
Python Version 3.8
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "python": [
    "3.8"
  ],
  "jobs": {
    "include": [
      {
        "name": "test, check format, check lint and report coverage",
        "install": [
          "cd furbaby && pip install -r requirements.txt",
          "export GIT_COMMIT_SHORT_HASH=$(git rev-parse --short HEAD)",
          "export GIT_COMMIT_HASH=$(git rev-parse HEAD)",
          "echo $GIT_COMMIT_HASH",
          "echo $GIT_COMMIT_SHORT_HASH",
          "export AWS_SECRET_ACCESS_KEY=\"$AWS_ACCESS_SECRET_KEY\"",
          "export AWS_BUCKET_NAME=\"elasticbeanstalk-us-east-1-994011800090\""
        ],
        "script": [
          "printenv > ./furbaby/.env",
          "ls -lah ./furbaby",
          "git add .",
          "git commit -m \"add latest .env file\"",
          "black --check .",
          "pylint **/*.py --exit-zero",
          "coverage run --source=api manage.py test --keepdb",
          "coverage report"
        ],
        "after_script": [
          "export CI_NAME=travis-ci",
          "export CI_BUILD_NUMBER=$TRAVIS_BUILD_ID",
          "export CI_BUILD_URL=$TRAVIS_BUILD_WEB_URL",
          "export CI_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH",
          "export CI_PULL_REQUEST=$TRAVIS_PULL_REQUEST",
          "curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls"
        ],
        "deploy": [
          {
            "provider": "elasticbeanstalk",
            "access_key_id": "$AWS_ACCESS_KEY_ID",
            "secret_access_key": "$AWS_ACCESS_SECRET_KEY",
            "skip_cleanup": true,
            "region": "us-east-1",
            "app": "project-team-1-furbaby",
            "env": "staging",
            "bucket": "$AWS_BUCKET_NAME",
            "on": {
              "branch": [
                "develop"
              ]
            }
          },
          {
            "provider": "elasticbeanstalk",
            "access_key_id": "$AWS_ACCESS_KEY_ID",
            "secret_access_key": "$AWS_ACCESS_SECRET_KEY",
            "region": "us-east-1",
            "app": "project-team-1-furbaby",
            "env": "production",
            "bucket": "$AWS_BUCKET_NAME",
            "skip_cleanup": true,
            "on": {
              "branch": [
                "master"
              ]
            }
          }
        ]
      }
    ]
  }
}