Skip to content

Commit

Permalink
Merge pull request #30 from natura-cosmeticos/feature/automating-release
Browse files Browse the repository at this point in the history
feat(travis): added travis automation for publishing
  • Loading branch information
robertLichtnow committed Feb 11, 2020
2 parents 18e1f40 + b1fd1b8 commit 9ee8443
Show file tree
Hide file tree
Showing 5 changed files with 11,848 additions and 4,323 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ bower_components
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Distributed files
dist

# Dependency directories
node_modules/
jspm_packages/
Expand Down Expand Up @@ -66,3 +69,4 @@ docs/
/.idea
/.vscode
.scannerwork/
.DS_Store
53 changes: 41 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,42 @@
language: node_js
cache:
directories:
- node_modules
node_js:
- 10
- 9
- 8
install:
- npm install
script:
- npm run lint
- npm test

os:
- linux

jobs:
include:
- stage: Testing (node 12)
node_js: 12
if: type = pull_request
before_script:
- npm run lint
install:
- npm install
script:
- npm run test
- stage: Testing (node 10)
node_js: 10
if: type = pull_request
before_script:
- npm run lint
install:
- npm install
script:
- npm run test
- stage: Testing (node 8)
node_js: 8
if: type = pull_request
before_script:
- npm run lint
install:
- npm install
script:
- npm run test
- stage: release
node_js: 12
if: branch = master AND type = push
script: skip
deploy:
provider: script
cleanup: true
script: npm install && npm run build && npm run semantic-release
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -ex

rm -rf dist
mkdir dist
cp -rpv src index.js dist
Loading

0 comments on commit 9ee8443

Please sign in to comment.