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 7c76481
Show file tree
Hide file tree
Showing 20 changed files with 151 additions and 377 deletions.
82 changes: 67 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,82 @@ matrix:
- node_js: '10'
env:
global:
- secure: ZTBYFZ10aI9BZPy5svRBilIqEbx88fLxUVgblqhlWStF8jhnWslOULzjXFbz2dpTboEYDxlFwfo9+K0hYUJmL7iDtpnKX9pbA5SXQxok2W9zoGGrNDedcXIQxyCWMKKmpcco5B6PFS+uScuYSQzUu9FEwkcEXoxr1hUom2THEXm3FxRHMP5iCr9HwNb0ZmHq622G5jEtCImWErHauLYyuay9A9geFysHuUE5qNITsQP5IjNH2vEqs3KAGZxLAUbV7OKwafEh2mPDqYV/96uOf4uGtQA5EV2yfoemkLN1OgffGGLoPqdL5kDzkcrPacbVvQSc8pL5T4irsNOngs3PsiEtz21qdkA0o9pwsbmC4HWRxq/4A86ECH1mWoLXp6aF6LmUpxclnQIj46986Dm+DSfg9wmUHP4WJsfrQOfJ4ZIgtAG0hS5nKSHY9qep9bkLNgP4K6ZCVosUG3QgA5nImyP++90H8eM6hzNCpXCBX71S1QmW6iQqPT1B34S2fJzPQYU3mFX05itP7V9ikKsFXy9YDjmzc8f1E09/WH1bJcW/4kcHUxyki6PZy4hWM7252H7iI1wcseOExzmS9awkZUKyGqVrVQ9D7/KZxmh9zHfRHXRZj1FSDtLBaPSlAS8Do0EDToFpUsFEdHUyvgf3QWg6jwweS9zXlXTmKxBPxz8=
- secure: ZTBYFZ10aI9BZPy5svRBilIqEbx88fLxUVgblqhlWStF8jhnWslOULzjXFbz2dpTboEYDxlFwfo9+K0hYUJmL7iDtpnKX9pbA5SXQxok2W9zoGGrNDedcXIQxyCWMKKmpcco5B6PFS+uScuYSQzUu9FEwkcEXoxr1hUom2THEXm3FxRHMP5iCr9HwNb0ZmHq622G5jEtCImWErHauLYyuay9A9geFysHuUE5qNITsQP5IjNH2vEqs3KAGZxLAUbV7OKwafEh2mPDqYV/96uOf4uGtQA5EV2yfoemkLN1OgffGGLoPqdL5kDzkcrPacbVvQSc8pL5T4irsNOngs3PsiEtz21qdkA0o9pwsbmC4HWRxq/4A86ECH1mWoLXp6aF6LmUpxclnQIj46986Dm+DSfg9wmUHP4WJsfrQOfJ4ZIgtAG0hS5nKSHY9qep9bkLNgP4K6ZCVosUG3QgA5nImyP++90H8eM6hzNCpXCBX71S1QmW6iQqPT1B34S2fJzPQYU3mFX05itP7V9ikKsFXy9YDjmzc8f1E09/WH1bJcW/4kcHUxyki6PZy4hWM7252H7iI1wcseOExzmS9awkZUKyGqVrVQ9D7/KZxmh9zHfRHXRZj1FSDtLBaPSlAS8Do0EDToFpUsFEdHUyvgf3QWg6jwweS9zXlXTmKxBPxz8=
cache:
timeout: 1200
directories:
- $HOME/.npm
- node_modules
- packages/posts/node_modules
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
- export NODE_ENV=prd
before_script:
- npm audit
- npx lerna run pretest
script:
- npm run travis
cache:
directories:
- $HOME/.npm
- node_modules
- packages/posts/node_modules
after_script:
- npm run coveralls
stages:
- name: Test
if: tag IS blank AND commit_message ~= /(?!(?:^release\(Travis\):)).*/
- name: Release
if: tag IS blank AND branch = master AND commit_message ~= /(?!(?:^release\(Travis\):)).*/
- name: Deploy
if: tag IS present
jobs:
include:
- stage: Release
name: GitHub
node_js: '8'
before_install:
- git checkout $TRAVIS_BRANCH
- export NODE_ENV=prd
install:
- npm run postinstall
script: skip
before_deploy:
- mkdir -p $TRAVIS_BUILD_DIR/../dpl_cd_upload
- tar -zcf $TRAVIS_BUILD_DIR/../dpl_cd_upload/me.tar.gz -C $TRAVIS_BUILD_DIR/ $TRAVIS_BUILD_DIR
- 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 add --verbose --force --all docs
- 'npx lerna publish --conventional-commits --yes --skip-npm --message "release(Travis): Release %s" --git-remote "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}"'
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
- stage: Deploy
name: web
node_js: 8
before_install:
- export NODE_ENV=prd
install:
- npm run postinstall
script: skip
deploy:
- provider: script
script: $TRAVIS_BUILD_DIR/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
- stage: Deploy
name: posts
node_js: 8
before_install:
- export NODE_ENV=prd
install:
- npm run postinstall
script: skip
deploy:
- provider: script
script: npm run deploy --prefix packages/posts
skip_cleanup: true
notifications:
slack:
secure: YdWidvVw0Guj6iPXO/Y2wJ+h6as9CU7brL4crIKHCOZjH4ffXI63r6tuKAE+y9zJpAp1NntdeVWdZAe7eMPqZcRGg1HybzLf8aEQkBFK8tf/q2zU93DVFCjrDJDF5lqY4ySTe5aSvC8Q7M1167+PLpZy5H8aUlj0kSzJ/FGOfeI93p07Wtviv8cN6nZ986q90Djovkfn9tuaRj6fR6MjWlFcQ/9UNhpVqf8aGXjE1AOHYth6k7L4YWULWb3Don1oW2wFX/E4rGecqWBKyh7VN742va1y0VHaLys+bbGbmIUQllESVy4gFyAXs/tZjx47+sXn2R6nJn5Y9kIsMe0GKBlGhV0N5QoOjVbJt8xNVgF8HzRHEoo5uDZpd5tFbFa4rK1ZvtV+mmIvjqXtKxjuQ+AXcmdCuORaN0y6He63TF66uMfdoF75aatr0ebT2Ma9/NTMdg3L7MWfiCAOl0y1a/8l9HSOv01ZL2m3iAotB+F231ZouofDuOmsSxAhDJGwskQkrExoU/t8JW4jz391sbQpGmJBDSMyFKe6EZwXqV6R9OfoWxbEXRNz7ZEKNZG5d/EUo+BRNL35MsCy2fnM41pPUHE1jf6YnnMbZtKF5DhR8LA5R3RlrSdUuM2T0JNJxK08prLz8RgghlKpsNEYxomqagqQnQd1+4TVK7A37WY=
secure: MTSym0Ymg+oYMx+Fmf3a2g2LyVtPJ8hg4sjtbfdyPBZAhO3rU9RxRFrBimNp9knZppwFpofosW4C6bKEBAN6p2AfeZOqQmYuRetZdS27pO6mdBpH56EJ7o2VJS/5ec9Lqw77802FO8XiRtWwySvxyE9nEHmm5dxOYf2JYj9OTiyNqmyRJFTRQiURZLOxn1CJLUI3OB8A0dtRU1hI3xx0kP+q7fHXp8xdNssB8ETBXwzG3HFE12VQRseCe01U0PdmGiRwQRQGXcGg00KTPFU1Gin7LY9mhSHRV9TsmvTtx6gXMYHo2UiLts0Omeb80k1nDZwBcAYsY4bIpgI1e01jJpDIHbg4lWskbnnSZWHG9QPIsOcG236Oqz/5bj+J70gRMw1zu+UYnH8XcfgcV+tBOu86oj8rtWeFGr58mh1HOiNedvqef2xNi+Yc3Ykj3ZfjVITlI/Lfpi6ZPNhjpL4Bbanmyd3KbbaYpdWkY5+SYJOhidq6VpHpBIqsACUwsLl6X8Yajteh5TLMK9ixkaTL97BT8niHTtEwkraMs5a0yfi9EDQNOjFERJq48Jrhpuq+MosgmyMmgX+31khzIgMr9+AUy3wL3dmIO198+Wm/k2rElYJmYuORI+txzIwYDGsaUbusyhy578Q5ilsiLbF1jZnPrvlQKVLCTIAMlXdmTpw=
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 7c76481

Please sign in to comment.