diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d496ebb8..00000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -language: node_js -sudo: required -dist: focal -notifications: - email: false - slack: - rooms: - # insights-bot channel on [Ansible Slack](https://ansible.slack.com) - - secure: juuizlfiQolXbqy4L2nfODB1K8xiSGvUrzsT3XeXIsQqX7yCYVvnRUssKLbqgLM9m85kgXJk1ef0qwjJoliNqGcrALTZLHPTkxWwTnV7tPEVS/4uQPSyy+DDHDwrTzCrF3qhCqyKJ6vB18z22qm3qLgStmNj4p1ZLznsdJR/u7U3spJ+WLL70QSNHCQy/5QjRDDiR3oqWdXjhVcUCeV+v/2CtfqK3dqYtzCL/b7z8lm/YbV6w1Rd8mwzTgLstbzjrvR/gq2IPALzzJTq1S8lXtV7ZtbYz4bjB8RNCRZFJrjBUH4CqD1oUskit4RRe+ilVs8qNQh0Tt3whsOdbJoRXJn2B/NVxppp2WGlODdsuMgfNh5iBocHKN3Qo4mONbstnHFG99Hr7L8GbUugJHEQlrZn1xRyO9ulyVp+hFp8/F088NNyhnd3+lERUPA5/4+HPQh6Ea+PyKq2TR41VoDGcRDBS4VY/6PfLEJzxEBjwRAAemfvtOFTUu2EocuAllPX1vMA4b1j7Wm+Bs7wft6nEcVdftVanfAgx4dNksnaS8zN9II8rdtBci2yXYJ6J+e+REDn/2IrHaUwr0N9BojYc0ePUElDcygW4Kk1oGklHp681j2zhi1Gt7rbuae1C9fD4QHnryx59uVH5NXqDsXI5EbwTJE3zvzRz9SzmyDqV5A= -node_js: -- '18' -install: -- npm ci -jobs: - include: - - stage: Lint - script: npm run lint - - stage: Test - script: npm run test && npx codecov - - stage: Deploy - script: npm run deploy && curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s -env: - global: - - REPO="git@github.com:RedHatInsights/learning-resources-build.git" - - REPO_DIR="learning-resources-build" - - BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} - - NODE_OPTIONS="--max-old-space-size=4096 --max_old_space_size=4096" diff --git a/.travis/custom_release.sh b/.travis/custom_release.sh deleted file mode 100644 index f147de49..00000000 --- a/.travis/custom_release.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -set -e -set -x - -if [ "${TRAVIS_BRANCH}" = "master" ] -then - for env in ci qa - do - echo "PUSHING ${env}-beta" - rm -rf ./dist/.git - .travis/release.sh "${env}-beta" - done -fi - -if [ "${TRAVIS_BRANCH}" = "master-stable" ] -then - for env in ci qa - do - echo "PUSHING ${env}-stable" - rm -rf ./dist/.git - .travis/release.sh "${env}-stable" - done -fi - -if [[ "${TRAVIS_BRANCH}" = "prod-beta" || "${TRAVIS_BRANCH}" = "prod-stable" ]]; then - echo "PUSHING ${TRAVIS_BRANCH}" - rm -rf ./build/.git - .travis/release.sh "${TRAVIS_BRANCH}" -fi diff --git a/.travis/deploy_key.enc b/.travis/deploy_key.enc deleted file mode 100644 index 9171352a..00000000 Binary files a/.travis/deploy_key.enc and /dev/null differ diff --git a/README.md b/README.md index 6edf51a0..89a40d6c 100644 --- a/README.md +++ b/README.md @@ -35,15 +35,7 @@ Update `config/dev.webpack.config.js` according to your application URL. [Read m ## Deploying -- The starter repo uses Travis to deploy the webpack build to another Github repo defined in `.travis.yml` - - That Github repo has the following branches: - - `ci-beta` (deployed by pushing to `master` or `main` on this repo) - - `ci-stable` (deployed by pushing to `ci-stable` on this repo) - - `qa-beta` (deployed by pushing to `qa-beta` on this repo) - - `qa-stable` (deployed by pushing to `qa-stable` on this repo) - - `prod-beta` (deployed by pushing to `prod-beta` on this repo) - - `prod-stable` (deployed by pushing to `prod-stable` on this repo) -- Travis uploads results to RedHatInsight's [codecov](https://codecov.io) account. To change the account, modify CODECOV_TOKEN on https://travis-ci.com/. +Deployment is handled by [Konflux](https://konflux-ci.dev/) via Tekton pipelines defined in `.tekton/`. See the [Technical Reference](./docs/TECHNICAL_REFERENCE.md) for details on the CI/CD pipeline. ## HelpPanelLink diff --git a/docs/TECHNICAL_REFERENCE.md b/docs/TECHNICAL_REFERENCE.md index 75cbb7f1..e6ef2cb5 100644 --- a/docs/TECHNICAL_REFERENCE.md +++ b/docs/TECHNICAL_REFERENCE.md @@ -441,13 +441,8 @@ The application uses multiple CI/CD platforms for comprehensive testing and depl ```mermaid graph TD A[Git Push/PR] --> B{Platform} - B -->|Legacy| C[Travis CI] B -->|Modern| D[GitHub Actions] - B -->|K8s Native| E[Tekton] - - C --> C1[Lint] - C1 --> C2[Test] - C2 --> C3[Deploy to Repo] + B -->|K8s Native| E[Tekton/Konflux] D --> D1[Install Dependencies] D1 --> D2[Cypress Component Tests] @@ -463,26 +458,6 @@ graph TD E6 --> E7[Dev Proxy Tests] ``` -**Travis CI Configuration:** `.travis.yml` - -```yaml -language: node_js -node_js: 18 -stages: - - lint - - test - - deploy - -jobs: - include: - - stage: lint - script: npm run lint - - stage: test - script: npm test - - stage: deploy - script: npm run deploy -``` - **GitHub Actions:** `.github/workflows/test.yml` - Node.js version: 20 @@ -1180,7 +1155,6 @@ npm run test:e2e:debug # Debug mode | File | Purpose | |------|---------| -| `/.travis.yml` | Travis CI pipeline configuration | | `/.github/workflows/test.yml` | GitHub Actions workflow for component tests | | `/.tekton/learning-resources-push.yaml` | Tekton push pipeline (master branch) | | `/.tekton/learning-resources-pull-request.yaml` | Tekton PR pipeline with E2E tests |