Skip to content

Commit

Permalink
feat(ci): Set up ci/cd with Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored May 24, 2019
1 parent a579e74 commit bcf4082
Show file tree
Hide file tree
Showing 73 changed files with 4,366 additions and 1,871 deletions.
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: node_js
node_js:
- '10'
dist: trusty
sudo: required

cache: npm

script:
- npm run build
- if [ "$TRAVIS_TAG" == "" ] && [[ "$TRAVIS_COMMIT_MESSAGE" != *"skip-tests"* ]]; then npm run test; fi
- if [ "$TRAVIS_TAG" == "" ] && [[ "$TRAVIS_COMMIT_MESSAGE" != *"skip-tests"* ]]; then npm run lint; fi
- if [ "$TRAVIS_TAG" == "" ] && [[ "$TRAVIS_COMMIT_MESSAGE" != *"skip-tests"* ]]; then npm run sonar; fi
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_AUTH_TOKEN}" > ~/.npmrc
deploy:
- provider: script
script: npm run publish:library
skip_cleanup: true
on:
tags: true
- provider: script
script: npm run publish:staging
skip_cleanup: true
on:
all_branches: true
tags: false
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

This is the repository for the Angular component library for SBB.

[Documentation/Showcase](https://sbb-angular.app.sbb.ch/latest/)
[Documentation/Showcase](https://angular.app.sbb.ch/latest/)

[Design Specification](https://digital.sbb.ch/)

## Packages

`npm install --save @sbb-esta/angular-icons @sbb-esta/angular-public`

### [@sbb-esta/angular-icons](https://www.npmjs.com/package/@sbb-esta/angular-icons)

The package containing SBB icons as components.

[Icon List](https://angular.app.sbb.ch/latest/icons-list)

[SVG Origin](https://digital.sbb.ch/de/icons-und-piktogramme/sbb-icons)

### [@sbb-esta/angular-public](https://www.npmjs.com/package/@sbb-esta/angular-public)

The package containg the components/modules for public SBB websites.

[Component List](https://angular.app.sbb.ch/latest/components-list)
14 changes: 10 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,18 @@
"ci": {
"watch": false,
"codeCoverage": true,
"browsers": "ChromeHeadless",
"sourceMap": true
"browsers": "BsChrome",
"sourceMap": false,
"progress": false
},
"local": {
"codeCoverage": true
},
"datepicker": {
"main": "projects/sbb-esta/angular-public/src/lib/datepicker/test.ts"
},
"toggle": {
"main": "projects/sbb-esta/angular-public/src/lib/datepicker/test.ts"
}
}
},
Expand Down Expand Up @@ -224,7 +228,8 @@
"watch": false,
"codeCoverage": true,
"browsers": "ChromeHeadless",
"sourceMap": true
"sourceMap": false,
"progress": false
},
"local": {
"codeCoverage": true
Expand Down Expand Up @@ -270,7 +275,8 @@
"watch": false,
"codeCoverage": true,
"browsers": "ChromeHeadless",
"sourceMap": true
"sourceMap": false,
"progress": false
},
"local": {
"codeCoverage": true
Expand Down
Loading

0 comments on commit bcf4082

Please sign in to comment.