Skip to content

Commit

Permalink
Redefining integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fadc80 committed Nov 29, 2019
1 parent 1d6b252 commit 243b330
Show file tree
Hide file tree
Showing 147 changed files with 17,060 additions and 16,942 deletions.
54 changes: 36 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,53 @@
dist: trusty
sudo: required

addons:
sonarcloud:
organization: "fadc80-github"
token:
secure: "h50IeJTbVkwbhVS2NsSoKD04D+0mS853j7XWMgGHQt+UBkFEjuN7QH04oDSKK2/laG5+MATW9NEf60AStOxE1gszLn/ljynGcMHdAKmyud7x2rt8bWFNQeorYDUcRrcQ4gNR0MRI8go6WZ9JjdBxpz5apaNtDAOru7+/7C4NoVOzxfIdqSBVVpnQyaEjnV2y2ZLJUSeYnS9Po4s45rAp994ARFLNwDIKMub9hOoLZNzmIM8PkfBS/7xrVDwZXoPRmAsryebmhoJtD75uky5bv4d+HyIymzdx8xb8pZIbrEmx6Bq+ggcoMAOpdmz0FUUI1umy4kGlapXf6FhRgFjca4C09eVtdF457JNOaRBI1Edhrj+VPHNYqvpt6Vu3sDdXbS5taadYifxX7z2EvSYXvJsm3Iz7OlmaYhsDTSm0V2WHNHA2hjjjnCgTL+g0i47ResjvLwne5+bs+WeFaC58f5b94/2ARCtFG/4wZItVXu+GX4WYC69LMVBm0f1MoOOlNRn7bZET6TlnTudB+Cx02tDhqizFjM6H2EhWwsjGQptYz1QH/PQTrpQZz3dFA28HJGrsrqp/7CEDwlpluFts95Cga/opb+4iejL/32Y30OQmWmKeJE6JRHgKrZe+JscGhZ+h8cx5PTysGEqi5teuiHlOKkb0dqD4yKiHw4dVGyY="
cache:
directories:
- '$HOME/node_modules'
- '$HOME/.sonar/cache'
- '$HOME/it/angular-jasmine/.sonar/cache'
- '$HOME/it/angular-mocha/.sonar/cache'

jdk:
- open-jdk-8

before_script:
- npm install -g @angular/cli
language: node_js
node_js:
- '8'
- '9'
- '10'

script:
before_script:
- git fetch --unshallow
- echo "Unit Tests"
- npm run test
- sonar-scanner
- echo "Integration Tests"
- cd it
- npm install -g @angular/cli
- npm install
- npm run test
- sonar-scanner

cache:
directories:
- '$HOME/.sonar/cache'
script:
- echo "UT against $(node -v)"

language: node_js
node_js:
- '8'
- '9'
- '10'
jobs:
include:
- stage: integration
node_js: 10
script:
- echo "Project Angular/Jasmine"
- cd it/angular-jasmine
- npm install
- npm run test
- sonar-scanner
script:
- echo "Project Angular/Mocha"
- cd it/angular-mocha
- npm install
- npm run test
- sonar-scanner
- stage: metrics
node_js: 10
script:
- echo "Code metrics"
- sonar-scanner
13 changes: 13 additions & 0 deletions it/angular-jasmine/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
46 changes: 46 additions & 0 deletions it/angular-jasmine/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events.json
speed-measure-plugin.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
27 changes: 27 additions & 0 deletions it/angular-jasmine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# App1

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.1.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
Loading

0 comments on commit 243b330

Please sign in to comment.