Feature/4936 4937 analytics dashboard foundation #2148
Draft
Travis CI / Travis CI - Branch
required action
Oct 18, 2024 in 4m 7s
Build Errored
The build errored. This is a change from the previous build, which passed.
Details
This is a normal build for the feature/4936-4937-analytics-dashboard-foundation 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 | Shell |
Operating System | Linux (Jammy) |
Build Configuration
{
"language": "shell",
"os": [
"linux"
],
"dist": "jammy",
"before_install": [
"openssl aes-256-cbc -K $encrypted_e6af0c606e27_key -iv $encrypted_e6af0c606e27_iv -in test/google_credentials.json.enc -out test/google_credentials.json -d",
"export LC_ALL=C.UTF-8",
"export LANG=C.UTF-8",
"export LANGUAGE=C.UTF-8",
"curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo \"deb https://ngrok-agent.s3.amazonaws.com buster main\" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok",
"export TRAVIS_TAG=0.0.0",
"echo \"$DOCKER_PASSWORD\" | docker login -u \"$DOCKER_USERNAME\" --password-stdin",
"export PENDER_BRANCH=$((git ls-remote --exit-code --heads https://github.com/meedan/pender.git $TRAVIS_BRANCH >/dev/null && echo $TRAVIS_BRANCH) || echo 'develop')",
"echo \"Using branch $PENDER_BRANCH for Pender\"",
"git clone --branch=$PENDER_BRANCH https://github.com/meedan/pender.git",
"cd pender",
"cp config/config.yml.example config/config.yml",
"cp config/database.yml.example config/database.yml",
"cp config/sidekiq.yml.example config/sidekiq.yml",
"cd -",
"export CHECK_API_BRANCH=$((git ls-remote --exit-code --heads https://github.com/meedan/check-api.git $TRAVIS_BRANCH >/dev/null && echo $TRAVIS_BRANCH) || echo 'develop')",
"echo \"Using branch $CHECK_API_BRANCH for Check API\"",
"git clone --branch=$CHECK_API_BRANCH https://github.com/meedan/check-api.git",
"cd check-api",
"cp config/config.yml.example config/config.yml",
"cp config/database.yml.example config/database.yml",
"cp config/sidekiq.yml.example config/sidekiq.yml",
"cd -",
"export ALEGRE_BRANCH=$((git ls-remote --exit-code --heads https://github.com/meedan/alegre.git $TRAVIS_BRANCH >/dev/null && echo $TRAVIS_BRANCH) || echo 'develop')",
"echo \"Using branch $ALEGRE_BRANCH for Alegre\"",
"git clone --branch=$ALEGRE_BRANCH https://github.com/meedan/alegre.git",
"cd alegre",
"cp .env_file.test .env_file",
"cp ../test/google_credentials.json google_credentials.json",
"cd -",
"export PRESTO_BRANCH=$((git ls-remote --exit-code --heads https://github.com/meedan/presto.git $TRAVIS_BRANCH >/dev/null && echo $TRAVIS_BRANCH) || echo 'master')",
"echo \"Using branch $PRESTO_BRANCH for Presto\"",
"git clone --branch=$PRESTO_BRANCH https://github.com/meedan/presto.git",
"cd presto",
"cp .env_file.test .env_file",
"cp ../test/google_credentials.json google_credentials.json",
"cd -",
"cp config.js.example config.js",
"cp config.js.example test/config.js",
"cp config-build.js.example config-build.js",
"cp config-server.js.example config-server.js",
"cp test/config.yml.example test/config.yml"
],
"before_script": [
"TRAVIS_JOB_NAME=$TRAVIS_JOB_NAME TRAVIS_BRANCH=$TRAVIS_BRANCH ./build.sh",
"MAX_WEB_CURL=3000;",
"WEB_CURL_COUNT=0; until curl --silent -I -f --fail http://localhost:3333 || ((\"$WEB_CURL_COUNT\" == \"$MAX_WEB_CURL\")); do printf .; sleep 1; WEB_CURL_COUNT=$((++WEB_CURL_COUNT)); done; if [ \"$WEB_CURL_COUNT\" == \"$MAX_WEB_CURL\" ]; then echo \"Terminating job after $WEB_CURL_COUNT curl attempts to check-web\"; travis_terminate 1; fi",
"docker-compose exec web npm run linter",
"docker-compose exec web npm run test:integration:lint"
],
"jobs": {
"include": [
{
"stage": "tests",
"if": "branch = develop OR branch = master OR commit_message =~ /\\[full ci\\]/ OR commit_message =~ /\\[smoke tests\\]/",
"name": "integration-and-unit-tests",
"script": [
"docker ps",
"docker-compose exec web service nginx start",
"docker-compose -f docker-compose.yml -f docker-test.yml exec chromedriver service nginx start",
"docker-compose exec -e IMGUR_CLIENT_ID=$IMGUR_CLIENT_ID -e TRAVIS_JOB_NAME=$TRAVIS_JOB_NAME -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e AWS_ENDPOINT=$AWS_ENDPOINT -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_REGION=$AWS_REGION -e TEST_RETRY_COUNT=3 web npm run tests"
]
},
{
"stage": "tests",
"name": "similarity-tests",
"if": "branch = develop OR branch = master OR commit_message =~ /\\[full ci\\]/ OR commit_message =~ /\\[similarity tests\\]/",
"script": [
"docker-compose exec web service nginx start",
"docker-compose -f docker-compose.yml -f docker-test.yml exec chromedriver service nginx start",
"docker-compose exec -e IMGUR_CLIENT_ID=$IMGUR_CLIENT_ID -e TRAVIS_JOB_NAME=$TRAVIS_JOB_NAME -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e AWS_ENDPOINT=$AWS_ENDPOINT -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_REGION=$AWS_REGION -e TEST_RETRY_COUNT=3 web npm run tests"
]
},
{
"stage": "tests",
"name": "unit-tests",
"if": "branch != develop AND branch != master AND NOT commit_message =~ /\\[full ci\\]/ AND NOT commit_message =~ /\\[smoke tests\\]/ AND NOT commit_message =~ /\\[similarity tests\\]/",
"script": [
"docker-compose exec -e TRAVIS_JOB_NAME=$TRAVIS_JOB_NAME web npm run tests"
]
}
]
},
"after_script": [
"docker-compose exec web bash -c \"python -m json.tool test/file.json\"",
"size=$(du -k build/web/js/index.bundle.js | cut -f1) && size2=$(du -k build/web/js/vendor.bundle.js | cut -f1) && totalsize=$((size+size2)) && echo \"Your bundle size is $totalsize kb\"",
"kill -9 $(pgrep ngrok)"
],
"notifications": {
"slack": [
{
"rooms": [
{
"secure": "TAPzV/OeN5hl8JSGrqPcAtFO/NWa9IqMbyzuUpCZgNP9EbobmlTPx55mopI647rwVIQZM1RL+2SapHJbT7XCAjJ+uvzSQd0b/LaS/aXLKFcS3bBDcvKAUeCcCYUiDz7x832EYg0fsVErR2dZPxvuPtWtwrOlOaOo8HB1uVHjvKo20Wnr/J4+VNTGvhQ5awdmpHMh+KrWpjQi4Ta9zWOTmSYh3qhgaLKjIKXanoaWen87VJB6Jy8nJ3Bo6t3r3+sbCRN9/LUZ8sVcJnvzlKdOtiLGkz8u2YG2c8UD+iUt2VOk0o5L/o8YPoeukJyFuAHAdLrjOelwHCAD2dRfrpQG7y/8G0vjJRXg8DRaVBVIl9vpYM6lyVIw5I6a9XDbUeOnBAWHE3uj/xH0X0vcRREE5py6tbt1KPUBS9rc8JGdCW3ZXVZAXA+1cijR3AAZUZ0YEf9WKLYhsTFW9lYlDcmkrWgVD9vbtPGDg95sbtuB+H5dkEAOBkf2YGkqzO+aaQKLDHkib/1v4C1+T5lXqlWZUrP8EuRwWs6xJlhi6w72AZLo7kVmfGA3ZdKfVcPCqr83YBfhL0WbwgT94L+5STELxw/PhsyNyOM/sRLQgR24ga/lcg2+L395VIPrQvhgKc26yHBuqW2P6FSOEGMyEcZ34N1TMTtRF7/lkRmXyKt4zuc="
}
]
}
]
},
"env": [
"global=DOCKER_PASSWORD=[secure]=DOCKER_USERNAME=[secure]=AWS_ACCESS_KEY_ID=[secure]=AWS_SECRET_ACCESS_KEY=[secure]=AWS_ENDPOINT=[secure]=AWS_REGION=[secure] jobs={:APP=>\"check\"}"
]
}
Loading