Skip to content

Commit

Permalink
Add CD to the me monorepo.
Browse files Browse the repository at this point in the history
Maybe?
  • Loading branch information
randytarampi committed Jul 27, 2018
1 parent f7b50ee commit ca3f079
Show file tree
Hide file tree
Showing 18 changed files with 153 additions and 373 deletions.
96 changes: 78 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,89 @@ matrix:
env:
global:
- secure: ZTBYFZ10aI9BZPy5svRBilIqEbx88fLxUVgblqhlWStF8jhnWslOULzjXFbz2dpTboEYDxlFwfo9+K0hYUJmL7iDtpnKX9pbA5SXQxok2W9zoGGrNDedcXIQxyCWMKKmpcco5B6PFS+uScuYSQzUu9FEwkcEXoxr1hUom2THEXm3FxRHMP5iCr9HwNb0ZmHq622G5jEtCImWErHauLYyuay9A9geFysHuUE5qNITsQP5IjNH2vEqs3KAGZxLAUbV7OKwafEh2mPDqYV/96uOf4uGtQA5EV2yfoemkLN1OgffGGLoPqdL5kDzkcrPacbVvQSc8pL5T4irsNOngs3PsiEtz21qdkA0o9pwsbmC4HWRxq/4A86ECH1mWoLXp6aF6LmUpxclnQIj46986Dm+DSfg9wmUHP4WJsfrQOfJ4ZIgtAG0hS5nKSHY9qep9bkLNgP4K6ZCVosUG3QgA5nImyP++90H8eM6hzNCpXCBX71S1QmW6iQqPT1B34S2fJzPQYU3mFX05itP7V9ikKsFXy9YDjmzc8f1E09/WH1bJcW/4kcHUxyki6PZy4hWM7252H7iI1wcseOExzmS9awkZUKyGqVrVQ9D7/KZxmh9zHfRHXRZj1FSDtLBaPSlAS8Do0EDToFpUsFEdHUyvgf3QWg6jwweS9zXlXTmKxBPxz8=
before_install:
- uname -a
- lscpu
- npm install -g npm
- export NODE_ENV=prd;
after_install:
- git config --local user.name "Travis"
- export TRAVIS_AUTHOR=travis@randytarampi.ca
- export COMMIT_AUTHOR=`git --no-pager show -s --format='%ae' \`git rev-parse\``
- git config --local user.email $TRAVIS_AUTHOR
- git config --local branch.autosetuprebase always
before_script:
- npm audit
- npx lerna run pretest
script:
- npm run travis
cache:
timeout: 1200
directories:
- $HOME/.npm
- node_modules
- packages/posts/node_modules
after_script:
- npm run coveralls
stages:
- Integrate
- Release
- Deploy
if: commit_message ~= /(?!(?:^release\(Travis\):)).*/
jobs:
include:
- stage: Integrate
node_js: 8
before_install:
- uname -a
- lscpu
- npm install -g npm
- export NODE_ENV=prd;
after_install:
- git config --local user.name "Travis"
- export TRAVIS_AUTHOR=travis@randytarampi.ca
- export COMMIT_AUTHOR=`git --no-pager show -s --format='%ae' \`git rev-parse\``
- git config --local user.email $TRAVIS_AUTHOR
- git config --local branch.autosetuprebase always
before_script:
- npm audit
- npx lerna run pretest
script:
- npm run travis
after_script:
- npm run coveralls
- stage: Release
name: GitHub
node_js: 8
install: skip
script: skip
before_deploy:
- mkdir -p ../dpl_cd_upload
- tar -zcf ../dpl_cd_upload/me.tar.gz -C ./ .
- git config --local user.name "Travis"
- export TRAVIS_AUTHOR=travis@randytarampi.ca
- export COMMIT_AUTHOR=`git --no-pager show -s --format='%ae' \`git rev-parse\``
- git config --local user.email $TRAVIS_AUTHOR
- npx lerna publish --cd-version minor --yes --skip-npm -m "release(Travis): Release %s";
deploy:
- provider: releases
api_key:
secure: bscGrBY4fO8ca32Tr35yEZuMgt7QDMydEDghvsOEhvkoTQ2piicg5QeAJDbhd1lxszLbQ/8sN0Dn08VM1GN4iWMLyZPVcf0vFAxm+8kkNr5zepjwxvOkzMv4FfnILSQEWgMIS6xTopuLxKAe7OsPGOjV/H7S+3/UOil2Av1dKx4jd93L1Q+ciERDHtDgnA6zIYqtuFe6aoiMe8TDL5/q2Xvbp6M3UJpOor64u5uuc1ruoxPewJV9NYtwP0M6JR3wMMW/chOPNRVfp2WlXPYf/U8HOThWeAhBHZNgj2pXhvvNDq8w6Z6jcHt2mb+2ot8XZAUMqllONwSKQUBagkY2frXCTB1B4BVyVkQL2N3KlpQbPfjh3yk3qU9n0o5TECSWhqxAtCe9Zk6hy5/VSQib7zmVTh74JfoEMdudHtgciEeE5BMz8aEwo0+nInQcwVI1qQkTJ/WqMHAz7UDckMsgmnPoD5xYF13tRCJBk5ctmb28uKJYd2/1CQwOHI/KzpMhWO/KgcrjFSy4J3zDFtX8v9j7ZCMtjwpnf+juMADEoYbdchfsYVPFxhdYlGIdTPfKMuvrSIxpld07RMLM6/8gRUKCNpItf7GWKGNwMOd1j5cS266nCLBjA9HoG0fE0oCEcyP3lHgWRtiD3It5hj+Fv/d2eYgRLBZyE9VVoUFvaIE=
file: me.tar.gz
skip_cleanup: true
on:
branch: master
after_deploy:
- git push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG} HEAD:master;
- stage: Deploy
name: web
node_js: 8
install: skip
script: skip
before_deploy:
- git pull
deploy:
- provider: script
script: ./bin/force-split.sh www
#script: git push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG} HEAD:gh-pages; # FIXME-RT: Just push `www` to a github pages branch or something
skip_cleanup: true
on:
branch: master
- stage: Deploy
name: posts
node_js: 8
install: skip
script: skip
before_deploy:
- git pull
deploy:
- provider: script
script: NODE_ENV=prd npm run deploy --prefix packages/posts
skip_cleanup: true
on:
branch: master
notifications:
slack:
secure: YdWidvVw0Guj6iPXO/Y2wJ+h6as9CU7brL4crIKHCOZjH4ffXI63r6tuKAE+y9zJpAp1NntdeVWdZAe7eMPqZcRGg1HybzLf8aEQkBFK8tf/q2zU93DVFCjrDJDF5lqY4ySTe5aSvC8Q7M1167+PLpZy5H8aUlj0kSzJ/FGOfeI93p07Wtviv8cN6nZ986q90Djovkfn9tuaRj6fR6MjWlFcQ/9UNhpVqf8aGXjE1AOHYth6k7L4YWULWb3Don1oW2wFX/E4rGecqWBKyh7VN742va1y0VHaLys+bbGbmIUQllESVy4gFyAXs/tZjx47+sXn2R6nJn5Y9kIsMe0GKBlGhV0N5QoOjVbJt8xNVgF8HzRHEoo5uDZpd5tFbFa4rK1ZvtV+mmIvjqXtKxjuQ+AXcmdCuORaN0y6He63TF66uMfdoF75aatr0ebT2Ma9/NTMdg3L7MWfiCAOl0y1a/8l9HSOv01ZL2m3iAotB+F231ZouofDuOmsSxAhDJGwskQkrExoU/t8JW4jz391sbQpGmJBDSMyFKe6EZwXqV6R9OfoWxbEXRNz7ZEKNZG5d/EUo+BRNL35MsCy2fnM41pPUHE1jf6YnnMbZtKF5DhR8LA5R3RlrSdUuM2T0JNJxK08prLz8RgghlKpsNEYxomqagqQnQd1+4TVK7A37WY=
13 changes: 9 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"packages": [
"packages/*"
],
"version": "0.0.0"
"packages": [
"packages/*"
],
"version": "0.0.0",
"command": {
"publish": {
"allowBranch": "master"
}
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "me",
"private": true,
"devDependencies": {
"coveralls": "^3.0.2",
"lerna": "^3.0.0-beta.21"
},
"scripts": {
"clean": "npx lerna clean --yes; rm -rf node_modules package-lock.json packages/*/package-lock.json packages/*/dist packages/*/coverage packages/*/.nyc_output packages/*/.serverless packages/*/.webpack",
"postinstall": "./bin/bootstrap.sh",
"test": "npx lerna run test",
"cover": "rm -rf .nyc_output/ coverage/ && npx lerna run cover && mkdir .nyc_output/ coverage/ && npx lerna exec -- \"if [ -d \"./.nyc_output\" ]; then cp -rv .nyc_output/ ../..; fi;\" && npx nyc merge ./.nyc_output coverage/coverage.json && npx nyc report --reporter=lcov --temp-directory coverage && ls -al .nyc_output && ls -al coverage",
"cover": "rm -rf .nyc_output/ coverage/ && npx lerna run cover && mkdir .nyc_output/ coverage/ && npx lerna exec -- \"if [ -d \"./.nyc_output\" ]; then cp -rv .nyc_output ../..; fi;\" && npx nyc merge ./.nyc_output coverage/coverage.json && npx nyc report --reporter=lcov --temp-directory coverage && ls -al .nyc_output && ls -al coverage",
"coveralls": "cat coverage/lcov.info | npx coveralls",
"travis": "npm run cover && npm run coveralls"
}
Expand Down
38 changes: 0 additions & 38 deletions packages/css/.travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions packages/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"email": "rt@randytarampi.ca"
},
"version": "0.0.0",
"publishConfig": {
"access": "public"
},
"private": true,
"scripts": {
"pretest": "npx gulp -LLLL --color lint",
"test": "npx gulp -LLLL --color test",
"travis": "npx gulp -LLLL --color travis"
"test": "npx gulp -LLLL --color test"
},
"description": "Some common styles for the components in randytarampi/me.jsx and randytarampi/randytarampi.github.io",
"homepage": "https://github.com/randytarampi/me.css",
Expand Down
38 changes: 0 additions & 38 deletions packages/js/.travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"email": "rt@randytarampi.ca"
},
"version": "0.0.0",
"publishConfig": {
"access": "public"
},
"private": true,
"scripts": {
"pretest": "npx gulp -LLLL --color lint",
"test": "NODE_ENV=test npx gulp -LLLL --color test",
"cover": "rm -rf coverage/ .nyc_output/; NODE_ENV=test npx nyc npx gulp -LLLL --color test",
"travis": "npm run cover && npm run coveralls",
"coveralls": "cat coverage/lcov.info | npx coveralls"
"cover": "rm -rf coverage/ .nyc_output/; NODE_ENV=test npx nyc npx gulp -LLLL --color test"
},
"description": "Some common JS entities",
"homepage": "https://github.com/randytarampi/me.common.js",
Expand All @@ -34,7 +35,6 @@
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"chai": "^4.1.2",
"coveralls": "^3.0.2",
"eslint-plugin-import": "^2.13.0",
"gulp": "^4.0.0",
"gulp-eslint": "^5.0.0",
Expand Down
38 changes: 0 additions & 38 deletions packages/jsx/.travis.yml

This file was deleted.

14 changes: 7 additions & 7 deletions packages/jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
},
"version": "0.0.0",
"private": true,
"publishConfig": {
"access": "public"
},
"scripts": {
"pretest": "npx gulp -LLLL --color lint",
"test": "NODE_ENV=test npx gulp -LLLL --color test",
"cover": "rm -rf coverage/ .nyc_output/; NODE_ENV=test npx nyc npx gulp -LLLL --color test",
"travis": "npm run cover && npm run coveralls",
"coveralls": "cat coverage/lcov.info | npx coveralls"
"cover": "rm -rf coverage/ .nyc_output/; NODE_ENV=test npx nyc npx gulp -LLLL --color test"
},
"description": "Some common JSX components",
"homepage": "https://github.com/randytarampi/me.jsx",
Expand All @@ -20,7 +21,7 @@
"email": "bugs@randytarampi.ca"
},
"dependencies": {
"@randy.tarampi/js": "github:randytarampi/me.js#semver:^0.0.0-0",
"@randy.tarampi/js": "^0.0.0",
"isomorphic-fetch": "^2.2.1",
"lodash": "^4.17.10",
"raven-js": "^3.26.3",
Expand All @@ -37,15 +38,15 @@
},
"peerDependencies": {
"history": "^4.7.2",
"@randy.tarampi/css": "github:randytarampi/me.css#semver:^0.0.0-0",
"@randy.tarampi/css": "^0.0.0",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-materialize": "^2.2.1",
"react-redux": "^5.0.7",
"redux": "^4.0.0"
},
"devDependencies": {
"@randy.tarampi/css": "github:randytarampi/me.css#semver:^0.0.0-0",
"@randy.tarampi/css": "^0.0.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
Expand All @@ -57,7 +58,6 @@
"babel-preset-react": "^6.24.1",
"babel-register": "^6.26.0",
"chai": "^4.1.2",
"coveralls": "^3.0.2",
"css-loader": "^1.0.0",
"del": "^3.0.0",
"eslint-plugin-import": "^2.13.0",
Expand Down
Loading

0 comments on commit ca3f079

Please sign in to comment.