Skip to content

Commit 30a199c

Browse files
author
Marcos Vinícius Rubido Sauda
committed
First deploy
1 parent 029fe36 commit 30a199c

13 files changed

Lines changed: 124 additions & 42 deletions

.travis.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
dist: trusty
2+
3+
addons:
4+
chrome: stable
5+
6+
language: node_js
7+
8+
node_js:
9+
- "node"
10+
11+
env:
12+
- CURRENT_TAG="$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
13+
14+
cache:
15+
directories:
16+
- node_modules
17+
18+
before_script:
19+
- "export DISPLAY=:99.0"
20+
- "sh -e /etc/init.d/xvfb start"
21+
22+
script:
23+
- npm run lint
24+
- npm test
25+
- npm run e2e
26+
27+
before_deploy:
28+
- npm run build
29+
# https://docs.travis-ci.com/user/deployment/releases
30+
- if [ "$TRAVIS_BRANCH" == master ]; then
31+
git config --local user.name "Marcos Vinícius Rubido";
32+
git config --local user.email "github@marcosvrs.com";
33+
git tag "$CURRENT_TAG";
34+
echo "Created tag $CURRENT_TAG";
35+
fi
36+
37+
deploy:
38+
- provider: firebase
39+
skip_cleanup: true
40+
token:
41+
secure: "lfvJKVBlIXgvGYs15jTzgcn+FoeA6XmMHj2xl9XCnMuCgUKkwyu0t4HTzV/s6jEdR8V1/RM7yR6CWQkk2hrwVmwdUwnP1lH7daKObYfZp6RVigD/PV6ft+PVA/+PynbB67zRezqcOPY7oxq9WPJDVJWJg6IusNQ+YYww1U7OiU7u4JFZMx5hUHN+31uo8jb1P5shA3lwpxXxjbKACDZV/rrTs0jfaDLNnc7hZx6lo3zbFmz4uj0fgLxIXSZaHXPxU66+XGAOFxiZfcAdF8rf2B1t3vlgdc82gNDRjS1UkV32YecxbNZ0TyvkA5t6B+UfEgSq7Kto5MXCxRaKc2WdHiKB8BK0gu4RUm+rqyYkkjry1urgfhIbme+bTJTHTnozjMoz2gG5gbA4zaJeyQcQkOAkvweycSEi3CtIwsFQGVX3amzYx5uCiJbKp0LFPT8eVQZLHKkLn3v4wtoi4fZQMyvhQgkO1RMuMzN0igOarJLmyk6GUzxOap/Z6C+popyO/uGjELO+2amEhw28UAG32gD21sQJD1q15uiDyqRHgPPzBKjkLRk6sYIzmu/UPhOkCAIZhb/V2ECp8txx8Jw+Mc64SiUQPQU1iw1H+o3+Cb0h23HEhkFOs5Szl8tXo+RV1XG0cP2LdtHnyIMJ41vm/umBPT7hMNTonX/hXKVDvo0="
42+
project: "develop"
43+
on:
44+
branch: develop
45+
- provider: firebase
46+
skip_cleanup: true
47+
token:
48+
secure: "lfvJKVBlIXgvGYs15jTzgcn+FoeA6XmMHj2xl9XCnMuCgUKkwyu0t4HTzV/s6jEdR8V1/RM7yR6CWQkk2hrwVmwdUwnP1lH7daKObYfZp6RVigD/PV6ft+PVA/+PynbB67zRezqcOPY7oxq9WPJDVJWJg6IusNQ+YYww1U7OiU7u4JFZMx5hUHN+31uo8jb1P5shA3lwpxXxjbKACDZV/rrTs0jfaDLNnc7hZx6lo3zbFmz4uj0fgLxIXSZaHXPxU66+XGAOFxiZfcAdF8rf2B1t3vlgdc82gNDRjS1UkV32YecxbNZ0TyvkA5t6B+UfEgSq7Kto5MXCxRaKc2WdHiKB8BK0gu4RUm+rqyYkkjry1urgfhIbme+bTJTHTnozjMoz2gG5gbA4zaJeyQcQkOAkvweycSEi3CtIwsFQGVX3amzYx5uCiJbKp0LFPT8eVQZLHKkLn3v4wtoi4fZQMyvhQgkO1RMuMzN0igOarJLmyk6GUzxOap/Z6C+popyO/uGjELO+2amEhw28UAG32gD21sQJD1q15uiDyqRHgPPzBKjkLRk6sYIzmu/UPhOkCAIZhb/V2ECp8txx8Jw+Mc64SiUQPQU1iw1H+o3+Cb0h23HEhkFOs5Szl8tXo+RV1XG0cP2LdtHnyIMJ41vm/umBPT7hMNTonX/hXKVDvo0="
49+
project: "default"
50+
on:
51+
tags: true
52+
- provider: releases
53+
# https://docs.travis-ci.com/user/github-oauth-scopes/#Travis-CI-for-Open-Source-Projectsg
54+
api_key:
55+
secure: "XX4TxlJPFEVl+mhmIBn5teKNnxrh26iXpWN1CEWHgbmQ9gvvxhAdiRxQWGQ5Xu364M/RccSWSICtfgoWYprLg9lHX8XweS1UOcmnKCW8FHHxZChStWXb3WQ/Xah4lMnjjFjv85cUFSJxZyA4WU03av9o/kg3OxvfaMdIVbGOHzViLsMHHyih51ZSMCvUBf5JTioj91a7lkiud8j35I6Evlbj61COiUGZN9LsPqQm9lhHKr/GKzc/0MMjMt2H91byzKDxjfyDzQZ+gM4CCQdilfUY4pOHKYJ6wb3gZY4XH+mAOOcjiMBxm/jJa4M//o2TPEnLMe30HQs4ot4ISsEuc7wJEgwIs5HQsrguNsmg93JMM3blNWN8ak+YVZwOJHq0XvG8Uc3f8avqcRfBnCZcEGZvxED7YuJ/xmlqJb5wCnk84BkwVUBftWYclpuGbQLsfLlr9L7CQ1EkBZlfeBLp9Kraie/i/yRBDSA+EDPIkz86GrmtVpEuLukM1x4QXKcAtOcinml2GdhMyA1TxNu3129vrL7dKO0q9iml7gvyGah4/aF+UG2JWphWRQqJ146T2f55M2D/HT1q0OmEK0uS5XXiK5FVGkdCQrxcPfkwGFtkBHNWjmWWn4Lg4FHy/d8jBkw9Ccm/06NZYvGQwdW99iAmfSJYxOi8AbuQ1cEqcSY="
56+
on:
57+
branch: master

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "src/tsconfig.app.json",
2121
"assets": [
22-
"src/favicon.ico",
2322
"src/assets"
2423
],
2524
"styles": [

e2e/protractor.conf.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const { SpecReporter } = require('jasmine-spec-reporter');
55

6-
exports.config = {
6+
let config = {
77
allScriptsTimeout: 11000,
88
specs: [
99
'./src/**/*.e2e-spec.ts'
@@ -25,4 +25,12 @@ exports.config = {
2525
});
2626
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
2727
}
28-
};
28+
};
29+
30+
if (process.env.TRAVIS) {
31+
config.capabilities.chromeOptions = {
32+
args: ['--no-sandbox']
33+
};
34+
}
35+
36+
exports.config = config;

e2e/src/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ describe('workspace-project App', () => {
99

1010
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('Welcome to marcosvrs!');
12+
expect(page.getParagraphText()).toEqual('Nice to see you here!');
1313
});
1414
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"ng": "ng",
77
"start": "ng serve",
8-
"build": "ng build",
8+
"build": "ng build --prod",
99
"test": "ng test",
1010
"lint": "ng lint",
1111
"e2e": "ng e2e"

src/app/app.component.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.center {
2+
text-align: center;
3+
}

src/app/app.component.html

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
<!--The content below is only a placeholder and can be replaced.-->
2-
<div style="text-align:center">
3-
<h1>
4-
Welcome to {{ title }}!
5-
</h1>
6-
<img width="300" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==">
1+
<div class="center">
2+
<h1>Nice to see you here!</h1>
3+
<h2>I'm working to create a new website ;) </h2>
4+
<h3>I hope to see you back later!</h3>
75
</div>
8-
<h2>Here are some links to help you start: </h2>
6+
<p>Here some interesting links that you can take a look:</p>
97
<ul>
108
<li>
11-
<h2><a target="_blank" rel="noopener" href="https://angular.io/tutorial">Tour of Heroes</a></h2>
9+
<a target="_blank" rel="noopener" href="https://www.linkedin.com/in/marcosvrs">LinkedIn</a>
1210
</li>
1311
<li>
14-
<h2><a target="_blank" rel="noopener" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2>
12+
<a target="_blank" rel="noopener" href="https://www.xing.com/profile/MarcosVinicius_Rubido">Xing</a>
1513
</li>
1614
<li>
17-
<h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2>
15+
<a target="_blank" rel="noopener" href="mailto:me@marcosvrs.com?subject=Website Contact">My mail</a>
1816
</li>
19-
</ul>
20-
17+
</ul>

src/app/app.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ describe('AppComponent', () => {
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
1818
const app = fixture.debugElement.componentInstance;
19-
expect(app.title).toEqual('app');
19+
expect(app.title).toEqual('Marcos Vinícius Rubido: Web Developer and Software Engineer');
2020
}));
21-
it('should render title in a h1 tag', async(() => {
21+
it('should render a h1 tag', async(() => {
2222
const fixture = TestBed.createComponent(AppComponent);
2323
fixture.detectChanges();
2424
const compiled = fixture.debugElement.nativeElement;
25-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to marcosvrs!');
25+
expect(compiled.querySelector('h1').textContent).toContain('Nice to see you here!');
2626
}));
2727
});

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
66
styleUrls: ['./app.component.css']
77
})
88
export class AppComponent {
9-
title = 'app';
9+
title = 'Marcos Vinícius Rubido: Web Developer and Software Engineer';
1010
}
File renamed without changes.

0 commit comments

Comments
 (0)