chore: packaging

This commit is contained in:
doubleface 2018-11-12 18:14:02 +01:00
parent 679ac5678a
commit c3f3202ac3
8 changed files with 15 additions and 16 deletions

View file

@ -5,9 +5,7 @@ env:
global:
- GH_USER_EMAIL="travis@example.org"
- GH_USER_NAME="cozy-bot"
- DEPLOY_REPOSITORY="git@github.com:konnectors/cozy-konnector-template.git"
# Token to access Cozy Registry, you should replace it with a token specific to this konnector
- secure: CQ44ZVjPAIVRvGgMcduSAX4VmaOrzF3nrJXPFUsNQ2tMVVdaAlI1zTNkdfntqigZgz6Mpk9x+2FcA8qrkNzQ4cW0lPP9f5dBtSH1xetfpXDFKprW4bqzmhgXSXJFTOYxkChOBPmCYJr+Vv4XqDkv/dBEPdfRSgvVyd5YxHSd5HBU91rKyR+Hox7LTnhmlXleLIs11EQgp7RK+L28MBCtCqAa2niFlKKRlqupm2FSpZzxCh9qeY0wKCQzPE+QZUm4waJ1SUGKQwbzAfyOxu2O6rwzaTSknfdJoSX6AMxjRTWBC9c3VfUGM3wjVJIqMhiUj2FQhVIjiDyX/W60/q3UMC5WYzSvEDDfhnKCPwiUKSU7HvSxx9q2YP34evxKo7KPahz9zLlQZvW+GBMyI9hbMDBTALuQVVzhftsvqfrogyYhkEPviiYiVADWNxhacsbUjRA5svXnZvtmCPo7fLFwel/krgC5Z8AwAY0YxWjSHNVScUkieSDCrlxrC09vTtG60unt9gtXbD5ruUkDLWSUwHBv2p0WY1TdP+2Vlf3yYfBvEVbqi59AxG+T17bq7Xv3QZnkrwC+UOCNCeg+gHPv+fRpUaYWzCO4uaoY/nlJa7RulQFhGca3A//6xRo/KgWw9JJnOXJelNjE9oHCUu9xShotUZKOF+O93V/BRqs9ITo=
- DEPLOY_REPOSITORY="git@github.com:konnectors/net-entreprise-micro.git"
cache:
yarn: true
directories:
@ -32,9 +30,8 @@ deploy:
on:
tags: true
before_install:
# run the yarn travisDeployKey command to genrate this
# - openssl aes-256-cbc -K $encrypted_0b21ecdcf920_key -iv $encrypted_0b21ecdcf920_iv
# -in github_deploy_key.enc -out /tmp/github_deploy_key -d
- openssl aes-256-cbc -K $encrypted_fb9d73f038c1_key -iv $encrypted_fb9d73f038c1_iv
-in github_deploy_key.enc -out /tmp/github_deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/github_deploy_key
- ssh-add /tmp/github_deploy_key

View file

@ -1,2 +1,2 @@
# General code owners
* @konnectors/maintainers
* @konnectors/maintainers @Schoumi

View file

@ -41,7 +41,7 @@ curl https://api.github.com/repos/konnectors/$reponame/keys -H "Authorization: t
EOF
# use travis to encrypt the private key as github_deploy_key.enc and remove the private key
travis encrypt-file github_deploy_key --add --no-interactive -w /tmp/github_deploy_key -f
travis encrypt-file github_deploy_key --add --no-interactive -w /tmp/github_deploy_key -f --pro
git add github_deploy_key.enc
# cleaning

Binary file not shown.

View file

@ -5,7 +5,7 @@
"language": "node",
"icon": "icon.png",
"slug": "net-entreprise-micro",
"source": "git://github.com/Schoumi/Net-Entreprise-AE.git",
"source": "git://github.com/konnectors/net-entreprise-micro.git",
"editor": "Mob-Dev",
"vendor_link": "https://www.net-entreprises.fr/",
"categories": ["other"],

View file

@ -1,13 +1,13 @@
{
"name": "cozy-konnector-template",
"name": "cozy-konnector-net-entreprise-micro",
"version": "1.0.0",
"description": "",
"repository": {
"type": "git",
"url": "git+https://github.com/konnectors/cozy-konnector-template.git"
"url": "git+https://github.com/konnectors/net-entreprise-micro.git"
},
"keywords": [],
"author": "Cozy Cloud",
"author": "Schoumi",
"license": "AGPL-3.0",
"main": "./src/index.js",
"eslintConfig": {
@ -29,13 +29,13 @@
"build": "webpack",
"precommit": "yarn lint",
"lint": "eslint --fix .",
"deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://$GITHUB_TOKEN@github.com/konnectors/cozy-konnector-template.git}",
"deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://$GITHUB_TOKEN@github.com/konnectors/net-entreprise-micro.git}",
"cozyPublish": "cozy-app-publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})",
"travisDeployKey": "./bin/generate_travis_deploy_key"
},
"dependencies": {
"cozy-konnector-libs": "4.11.2",
"moment": "^2.22.2"
"moment": "2.22.2"
},
"devDependencies": {
"copy-webpack-plugin": "4.5.2",

View file

@ -224,7 +224,9 @@ async function getDeclaration(params, periode) {
day = day < 10 ? '0' + day.toString() : day.toString()
bill.date = moment(
'' + subData[2] + '-' + subData[1] + '-' + day + 'T00:00:00.000Z'
).add(1, 'days').toDate()
)
.add(1, 'days')
.toDate()
bill.vendor = 'urssaf'
let month = periode % 100
if (month % 10 == 0) {

View file

@ -4425,7 +4425,7 @@ mkdirp@0.5.1, mkdirp@0.x.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdi
dependencies:
minimist "0.0.8"
moment@2.22.2, moment@^2.22.2:
moment@2.22.2:
version "2.22.2"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66"
integrity sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=