-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
doubleface
committed
Oct 16, 2018
1 parent
03cbe42
commit 402e892
Showing
6 changed files
with
82 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,42 @@ | ||
language: node_js | ||
node_js: | ||
- '8' | ||
|
||
- '8' | ||
env: | ||
global: | ||
- GH_USER_EMAIL="[email protected]" | ||
- GH_USER_NAME="cozy-bot" | ||
- DEPLOY_REPOSITORY="[email protected]:konnectors/edg.git" | ||
# Token to access Cozy Registry, you should replace it with a token specific to this konnector | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
- node_modules | ||
branches: | ||
except: | ||
- build | ||
- build-debug | ||
script: | ||
- yarn lint | ||
- yarn build | ||
- yarn lint | ||
- yarn build | ||
- yarn run check | ||
deploy: | ||
# publish dev versions | ||
- provider: script | ||
repo: konnectors/cozy-konnector-template | ||
skip-cleanup: true | ||
script: DEPLOY_BRANCH=build && yarn deploy && yarn cozyPublish | ||
on: | ||
branch: master | ||
# publish stable versions and beta versions based on tags | ||
- provider: script | ||
repo: konnectors/cozy-konnector-template | ||
skip-cleanup: true | ||
script: DEPLOY_BRANCH=build && yarn deploy && yarn cozyPublish | ||
on: | ||
tags: true | ||
- provider: script | ||
skip-cleanup: true | ||
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish | ||
on: | ||
branch: master | ||
- provider: script | ||
skip-cleanup: true | ||
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish | ||
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 | ||
- eval "$(ssh-agent -s)" | ||
- chmod 600 /tmp/github_deploy_key | ||
- ssh-add /tmp/github_deploy_key | ||
after_deploy: | ||
- rm /tmp/github_deploy_key | ||
- ssh-add -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# General code owners | ||
* @taratatach | ||
* @konnectors/maintainers @taratatach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/konnectors/cozy-konnector-template.git" | ||
"url": "git+https://github.com/konnectors/edg.git" | ||
}, | ||
"keywords": [], | ||
"author": "Cozy Cloud", | ||
|
@@ -22,27 +22,31 @@ | |
"start": "node ./src/index.js", | ||
"dev": "cozy-run-dev", | ||
"standalone": "cozy-run-standalone", | ||
"pretest": "npm run clean", | ||
"test": "konitor testit .", | ||
"check": "konitor check .", | ||
"clean": "rm -rf ./data", | ||
"build": "webpack", | ||
"precommit": "yarn lint", | ||
"lint": "eslint --fix .", | ||
"deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://[email protected]/taratatach/cozy-konnector-edg.git}", | ||
"cozyPublish": "cozy-app-publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})" | ||
"deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://[email protected]/konnectors/edg.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.4.0" | ||
"cozy-konnector-libs": "4.11.2" | ||
}, | ||
"devDependencies": { | ||
"copy-webpack-plugin": "4.5.1", | ||
"cozy-app-publish": "^0.3.6", | ||
"cozy-jobs-cli": "1.0.17", | ||
"eslint": "4.19.1", | ||
"eslint-config-cozy-app": "0.5.1", | ||
"copy-webpack-plugin": "4.5.3", | ||
"cozy-app-publish": "0.8.5", | ||
"cozy-jobs-cli": "1.5.1", | ||
"eslint": "5.7.0", | ||
"eslint-config-cozy-app": "1.1.3", | ||
"git-directory-deploy": "1.5.1", | ||
"husky": "0.14.3", | ||
"konitor": "0.8.2", | ||
"webpack": "4.6.0", | ||
"webpack-cli": "2.0.15" | ||
"husky": "1.1.2", | ||
"konitor": "0.9.0", | ||
"svgo": "1.1.1", | ||
"webpack": "4.20.2", | ||
"webpack-cli": "3.1.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters