Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
loktionov129 committed Oct 30, 2020
1 parent 3e8d6c1 commit da2bfce
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ deploy:
local_dir: compodoc
target-branch: gh-pages
email: torvalds@linux-foundation.org
name: Linus Torvalds
name: Linus Torvalds

after_success:
- echo Generate coverage info and deploy it to coveralls.io
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
3 changes: 0 additions & 3 deletions scripts/ci/5_deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
COMMANDS_TO_RUN+=('echo 5_deploy.sh ...')

COMMANDS_TO_RUN+=('echo Generate coverage info and deploy it to coveralls.io')
COMMANDS_TO_RUN+=('cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js')

COMMANDS_TO_RUN+=('npx semantic-release --branch $BRANCH')

COMMANDS_TO_RUN+=('yarn run compodoc')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class MainToolbarAvatarComponent {

get userAvatar$(): Observable<string> {
return this.accountService.authInfo$.pipe(
filter(x => !!x),
map(x => environment.imageUrl + x.user.avatar),
filter((x: any) => !!x),
map((x: any) => environment.imageUrl + x.user.avatar),
);
}

Expand Down
10 changes: 9 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

export const environment = {
interface IEnvironment {
apiUrl: string;
clientId: string;
imageUrl: string;
production: boolean;
websocketPath: string;
}

export const environment: IEnvironment = {
apiUrl: 'http://localhost:5000/api/',
clientId: 'mpgpclient',
imageUrl: 'http://localhost:5000/images/avatars/',
Expand Down

0 comments on commit da2bfce

Please sign in to comment.