Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
pipeline: add build and staging deployments (#41)
Browse files Browse the repository at this point in the history
This can be used to test and demo the project for others. Later a docker build script should be added for a one-liner deployment with Now.
  • Loading branch information
byCedric authored Oct 14, 2018
1 parent 03206e7 commit aaff84b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ script:
- npx stylelint ./src/**/*.js
- npx eslint ./src
- npx react-scripts test --coverage
- npm run build

after_success:
- npx codecov
Expand All @@ -29,6 +30,9 @@ deploy:
skip_cleanup: true
script:
- npx semantic-release --dry-run --branch develop
- npm run build
- npx now ./build -t $NOW_TOKEN -T personal -A ./now.staging.json
- npx now alias -A ./now.staging.json
on:
condition: $TRAVIS_OS_NAME = linux
branch: develop
Expand Down
10 changes: 10 additions & 0 deletions now.staging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"public": true,
"type": "static",
"name": "bycedric-website-staging",
"alias": [
"staging.bycedric.com",
"staging-bycedric.now.sh",
"staging-github.now.sh"
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@semantic-release/changelog": "^3.0.0",
"codecov": "^3.1.0",
"conventional-changelog-peakfijn": "^0.8.0",
"now": "^11.4.6",
"react-scripts": "2.0.4",
"release-rules-peakfijn": "^0.8.0",
"semantic-release": "^15.9.16",
Expand Down

0 comments on commit aaff84b

Please sign in to comment.