Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
feat(ci): Adds preview hook for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Mar 11, 2018
1 parent eb21c6a commit 2e8a385
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 4 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ dependencies:
- yarn
- npm rebuild node-sass
- gem install bundler
- yarn global add surge-preview
cache_directories:
- ~/.cache/yarn

compile:
override:
- yarn docs:dev
- yarn build
- yarn deploy:pr

test:
override:
Expand All @@ -41,7 +44,7 @@ deployment:
commands:
- yarn docs:dev
- yarn build
- yarn deploy:surge
- surge-preview

production:
branch: master
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"deploy:cdn": "rsync -rvt --chmod=D2755,F644 dist/ podlove@rsync.keycdn.com:applications/web-player/",
"deploy:release": "scripts/deploy-release.sh",
"deploy:surge": "surge --project ./dist --domain podlove-player.surge.sh",
"deploy:pr": "surge-preview",
"changelog": "standard-changelog"
},
"files": [
Expand All @@ -54,7 +55,6 @@
"binary-search": "1.3.3",
"clipboard": "1.7.1",
"color": "3.0.0",
"data.task": "^3.1.1",
"detect-browser": "2.1.0",
"hashcode": "1.0.3",
"iframe-resizer": "3.5.16",
Expand Down Expand Up @@ -83,7 +83,7 @@
"babel-plugin-transform-runtime": "6.23.0",
"babel-plugin-webpack-alias": "2.1.2",
"babel-preset-bluebird": "1.0.1",
"babel-preset-env": "^1.6.1",
"babel-preset-env": "1.6.1",
"babel-register": "6.26.0",
"browser-env": "3.2.4",
"commitizen": "2.9.6",
Expand Down
6 changes: 1 addition & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ babel-preset-bluebird@1.0.1:
babel-plugin-transform-async-to-bluebird "^1.0.0"
babel-plugin-transform-promise-to-bluebird "^1.1.0"

babel-preset-env@^1.6.1:
babel-preset-env@1.6.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48"
dependencies:
Expand Down Expand Up @@ -2602,10 +2602,6 @@ dashdash@^1.12.0:
dependencies:
assert-plus "^1.0.0"

data.task@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/data.task/-/data.task-3.1.1.tgz#e985f5bedadd926b2d63c1a5d2076cff917a52ad"

date-now@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
Expand Down

0 comments on commit 2e8a385

Please sign in to comment.