Skip to content

Commit 79a30f6

Browse files
authored
Merge pull request #1964 from streamr-dev/FRONT-1911-drop-travis
[FRONT-1911] Drop Travis references
2 parents 9531457 + c9c5f53 commit 79a30f6

15 files changed

+94
-377
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ test
55
bin
66
stories
77
scripts
8-
travis_scripts

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Although the frontend consists of a single app, the code is structured into diff
1515
- `utils` contains commonly used utilities, used throughout the App.
1616
- `stories` storybook stories.
1717
- `test` App unit tests.
18-
- `travis_scripts` Deployment scripts.
1918

2019
## Getting Started
2120

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

52-
Use `.travis.yml` to set the production values.
53-
5451
### Backend
5552

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

79-
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`,
76+
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`,
8077

8178
```
8279
git push v3.1.15
@@ -94,7 +91,7 @@ npm version patch
9491
git push master
9592
```
9693

97-
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`,
94+
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`,
9895

9996
```
10097
git push v3.1.15
@@ -104,15 +101,6 @@ git push v3.1.15
104101

105102
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
106103

107-
## Deployment
108-
109-
- When production builds:
110-
- Webpack creates `.map`-file in `dist` -directory with bundled JS
111-
- Travis has a script container (Runs when deploying in production)
112-
- Creates a new release in Sentry by `TRAVIS_TAG`
113-
- Pushes source map -file from `dist` into Sentry with tagged release
114-
- Removes the `.map`-file so it doesn't end up in production
115-
116104
### Sentry
117105

118106
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.

src/shared/utils/diagnostics.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,6 @@ global.streamr = Object.assign(global.streamr || {}, {
1313
streamrClientVersion,
1414
}
1515

16-
if (process.env.TRAVIS_TAG) {
17-
// If the current build is for a git tag
18-
// - TRAVIS_TAG is set to the tag’s name
19-
// - TRAVIS_COMMIT is the commit that the current build is testing
20-
return {
21-
...info,
22-
branch: '',
23-
version: process.env.TRAVIS_TAG,
24-
hash: String(process.env.TRAVIS_COMMIT).substr(0, 8),
25-
}
26-
} else if (process.env.TRAVIS_PULL_REQUEST_BRANCH) {
27-
// if the current job is a pull request:
28-
// - TRAVIS_PULL_REQUEST_BRANCH is the name of the branch from which the PR originated
29-
// - TRAVIS_PULL_REQUEST_SHA is the commit SHA of the HEAD commit of the PR.
30-
return {
31-
...info,
32-
branch: process.env.TRAVIS_PULL_REQUEST_BRANCH,
33-
version: '',
34-
hash: String(process.env.TRAVIS_PULL_REQUEST_SHA).substr(0, 8),
35-
}
36-
} else if (process.env.TRAVIS_BRANCH) {
37-
// for push builds, or builds not triggered by a pull request
38-
// - TRAVIS_BRANCH is the name of the branch.
39-
// - TRAVIS_COMMIT is the commit that the current build is testing
40-
return {
41-
...info,
42-
branch: process.env.TRAVIS_BRANCH,
43-
version: '',
44-
hash: String(process.env.TRAVIS_COMMIT).substr(0, 8),
45-
}
46-
}
47-
4816
const version = process.env.GIT_VERSION || ''
4917
const branch = process.env.GIT_BRANCH || ''
5018
const isMaster = branch === 'master'

travis_scripts/build-app-stg.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

travis_scripts/build-app.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

travis_scripts/build-storybook.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

travis_scripts/deploy-docker.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

travis_scripts/deploy-pr.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

travis_scripts/e2e-tests.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

travis_scripts/linter.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)