Merge pull request #1 from wadewegner/setup

Setup
This commit is contained in:
Wade Wegner 2018-06-20 20:28:41 -07:00 коммит произвёл GitHub
Родитель 1b48abf59d 943afc1ed7
Коммит 7702ba2729
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 70 добавлений и 56 удалений

Просмотреть файл

@ -1,45 +0,0 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
keys:
- sfdx-version-42-local
- run:
name: Install Salesforce DX
command: |
openssl aes-256-cbc -k $KEY -in .circleci/server.key.enc -out .circleci/server.key -d
export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true
export SFDX_DOMAIN_RETRY=300
npm install sfdx-cli
node_modules/sfdx-cli/bin/run --version
node_modules/sfdx-cli/bin/run plugins --core
- save_cache:
key: sfdx-version-42-local
paths:
- node_modules
- run:
name: Authenticate DevHub
command: |
node_modules/sfdx-cli/bin/run force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile .circleci/server.key --username $USERNAME --setdefaultdevhubusername -a HubOrg
- run:
name: Create Scratch Org
command: |
node_modules/sfdx-cli/bin/run force:org:create -v HubOrg -s -f config/project-scratch-def.json -a ciorg
- run:
name: Push Source
command: |
node_modules/sfdx-cli/bin/run force:source:push -u ciorg
- run:
name: Run Apex Tests
command: |
node_modules/sfdx-cli/bin/run force:apex:test:run -u ciorg -c -r human
- run:
name: Clean Up
when: always
command: |
node_modules/sfdx-cli/bin/run force:org:delete -u ciorg -p

Двоичные данные
.circleci/server.key.enc

Двоичный файл не отображается.

46
app.json Normal file
Просмотреть файл

@ -0,0 +1,46 @@
{
"name": "dreamhouse-sfdx",
"version": "0.1.0",
"description": "dreamhouse-sfdx",
"repository": "https://github.com/wadewegner/dreamhouse-sfdx",
"author": "",
"license": "ALv2",
"bugs": {
"url": "https://github.com/wadewegner/dreamhouse-sfdx/issues"
},
"homepage":
"https://github.com/wadewegner/dreamhouse-sfdx#readme",
"dependencies": {},
"devDependencies": {},
"buildpacks": [
{
"url": "https://github.com/heroku/salesforce-cli-buildpack#v3"
},
{
"url": "https://github.com/heroku/salesforce-buildpack#v2"
}
],
"env": {
"SFDX_DEV_HUB_AUTH_URL": {
"required": true
},
"SFDX_BUILDPACK_DEBUG": {
"required": true
},
"HEROKU_APP_NAME" : {
"required": true
}
},
"environments": {
"test": {
"scripts": {
"test-setup":
"./vendor/sfdx/release.sh ci-$HEROKU_TEST_RUN_COMMIT_VERSION && ./bin/test-setup.sh",
"test": "./bin/test.sh"
}
}
},
"scripts": {
"pr-predestroy": "./bin/ra-org-delete.sh"
}
}

Просмотреть файл

@ -1,14 +1,17 @@
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"id": "0Ho6A000000k9czSAA",
"versionName": "Spring 18",
"versionNumber": "2.0.0.NEXT"
"packageDirectories": [
{
"path": "force-app",
"package": "dreamhouse",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "42.0",
"packageAliases": {
"dreamhouse": "0Ho6A000000XZD1SAO"
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "42.0"
}

10
sfdx.yml Normal file
Просмотреть файл

@ -0,0 +1,10 @@
scratch-org-def: config/project-scratch-def.json
assign-permset: true
permset-name: dreamhouse
run-apex-tests: true
apex-test-format: tap
delete-scratch-org: false
show-scratch-org-url: false
open-path:
import-data: true
data-plans: sample-data-plan.json