Migrate to GitHub Actions #47
Closed
Travis CI / Travis CI - Branch
succeeded
Nov 5, 2024 in 4m 43s
Build Passed
The build passed, just like the previous build.
Details
This is a normal build for the development 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 (Jammy) |
Python Version | 3.11 |
Build Configuration
{
"language": "python",
"os": [
"linux"
],
"dist": "jammy",
"python": [
"3.11"
],
"cache": {
"directories": [
"$HOME/.cache/pip",
"$HOME/.cache/pre-commit"
]
},
"services": [
"docker"
],
"env": [
"global={:TIMESTAMP=>\"$(date '+%Y%m%d%H%M%S')\"}={:CONTAINER=>\"web\"}={:APPLICATION_NAME=>\"digitized_av_qc\"}={:APPLICATION_PORT=>\"80\"}"
],
"before_install": [
"echo \"$DOCKER_PASSWORD\" | docker login -u \"$DOCKER_USERNAME\" --password-stdin",
"docker-compose up -d"
],
"install": [
"pip install pre-commit && pre-commit install",
"./wait-for-it.sh $CONTAINER:$APPLICATION_PORT -- docker-compose exec $CONTAINER pip install coverage"
],
"script": [
"pre-commit run --all-files --show-diff-on-failure",
"docker-compose exec $CONTAINER coverage run manage.py test"
],
"after_script": [
"docker-compose exec $CONTAINER coverage report --omit=*/migrations/* -m"
],
"before_deploy": [
"pip install awscli",
"docker build -t ${APPLICATION_NAME} --target build .",
"if [ ! -d deploy_scripts ]; then git clone https://github.com/RockefellerArchiveCenter/deploy_scripts.git; fi"
],
"deploy": [
{
"provider": "script",
"script": "bash deploy_scripts/containers/push_image_to_ecr.sh $APPLICATION_NAME",
"on": {
"branch": [
"development"
]
}
},
{
"provider": "script",
"script": "bash deploy_scripts/containers/add_tag_to_image.sh $APPLICATION_NAME dev prod",
"on": {
"branch": [
"base"
]
}
}
],
"notifications": {
"email": [
{
"enabled": false
}
]
}
}
Loading