Skip to content

Commit

Permalink
Merge pull request #1964 from streamr-dev/FRONT-1911-drop-travis
Browse files Browse the repository at this point in the history
[FRONT-1911] Drop Travis references
  • Loading branch information
tumppi authored Dec 11, 2024
2 parents 9531457 + c9c5f53 commit 79a30f6
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 377 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ test
bin
stories
scripts
travis_scripts
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Although the frontend consists of a single app, the code is structured into diff
- `utils` contains commonly used utilities, used throughout the App.
- `stories` storybook stories.
- `test` App unit tests.
- `travis_scripts` Deployment scripts.

## Getting Started

Expand Down Expand Up @@ -49,8 +48,6 @@ Optional config values:
| STORYBOOK_BASE_PATH | Build path for Storybook stories |
| PLATFORM_PUBLIC_PATH | Public path for Webpack config. If not defined, relative paths are used. |

Use `.travis.yml` to set the production values.

### Backend

To run the app locally, you must install and start the development environment running on Docker.
Expand All @@ -76,7 +73,7 @@ npm version patch # This will get you a tag, too, e.g. v3.1.15.
git push master
```

At this point it's a good idea to check that Travis confirms all tests are passing. Then, for example if the new version is `3.1.15`,
At this point it's a good idea to check that GitHub Actions confirms all tests are passing. Then, for example if the new version is `3.1.15`,

```
git push v3.1.15
Expand All @@ -94,7 +91,7 @@ npm version patch
git push master
```

At this point it's a good idea to check that Travis confirms all tests are passing. Then, for example if the new version is `3.1.15`,
At this point it's a good idea to check that GitHub Actions confirms all tests are passing. Then, for example if the new version is `3.1.15`,

```
git push v3.1.15
Expand All @@ -104,15 +101,6 @@ git push v3.1.15

The project contains a Storybook including stories from the main components. The Storybook can be run with `npm run storybook` and built with `npm run build-storybook`. Storybook should be accessible after running `npm run storybook` at http://localhost:6006 or on your network at http://10.200.10.1:6006

## Deployment

- When production builds:
- Webpack creates `.map`-file in `dist` -directory with bundled JS
- Travis has a script container (Runs when deploying in production)
- Creates a new release in Sentry by `TRAVIS_TAG`
- Pushes source map -file from `dist` into Sentry with tagged release
- Removes the `.map`-file so it doesn't end up in production

### Sentry

JavaScript error tracking from Sentry helps developers easily fix and prevent JavaScript errors in production as part of your commit-deploy-iterate workflow. Ask a powerful developer for access to the Sentry alerts.
32 changes: 0 additions & 32 deletions src/shared/utils/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,6 @@ global.streamr = Object.assign(global.streamr || {}, {
streamrClientVersion,
}

if (process.env.TRAVIS_TAG) {
// If the current build is for a git tag
// - TRAVIS_TAG is set to the tag’s name
// - TRAVIS_COMMIT is the commit that the current build is testing
return {
...info,
branch: '',
version: process.env.TRAVIS_TAG,
hash: String(process.env.TRAVIS_COMMIT).substr(0, 8),
}
} else if (process.env.TRAVIS_PULL_REQUEST_BRANCH) {
// if the current job is a pull request:
// - TRAVIS_PULL_REQUEST_BRANCH is the name of the branch from which the PR originated
// - TRAVIS_PULL_REQUEST_SHA is the commit SHA of the HEAD commit of the PR.
return {
...info,
branch: process.env.TRAVIS_PULL_REQUEST_BRANCH,
version: '',
hash: String(process.env.TRAVIS_PULL_REQUEST_SHA).substr(0, 8),
}
} else if (process.env.TRAVIS_BRANCH) {
// for push builds, or builds not triggered by a pull request
// - TRAVIS_BRANCH is the name of the branch.
// - TRAVIS_COMMIT is the commit that the current build is testing
return {
...info,
branch: process.env.TRAVIS_BRANCH,
version: '',
hash: String(process.env.TRAVIS_COMMIT).substr(0, 8),
}
}

const version = process.env.GIT_VERSION || ''
const branch = process.env.GIT_BRANCH || ''
const isMaster = branch === 'master'
Expand Down
26 changes: 0 additions & 26 deletions travis_scripts/build-app-stg.sh

This file was deleted.

13 changes: 0 additions & 13 deletions travis_scripts/build-app.sh

This file was deleted.

3 changes: 0 additions & 3 deletions travis_scripts/build-storybook.sh

This file was deleted.

32 changes: 0 additions & 32 deletions travis_scripts/deploy-docker.sh

This file was deleted.

37 changes: 0 additions & 37 deletions travis_scripts/deploy-pr.sh

This file was deleted.

18 changes: 0 additions & 18 deletions travis_scripts/e2e-tests.sh

This file was deleted.

4 changes: 0 additions & 4 deletions travis_scripts/linter.sh

This file was deleted.

29 changes: 0 additions & 29 deletions travis_scripts/smoke-test.sh

This file was deleted.

24 changes: 0 additions & 24 deletions travis_scripts/start-docker-env.sh

This file was deleted.

6 changes: 0 additions & 6 deletions travis_scripts/unit-tests.sh

This file was deleted.

39 changes: 0 additions & 39 deletions travis_scripts/utils.sh

This file was deleted.

Loading

0 comments on commit 79a30f6

Please sign in to comment.