Merge pull request #32 from muenzpraeger/circleci

Adding CircleCI
This commit is contained in:
René Winkelmeyer 2018-05-23 18:24:42 +02:00 коммит произвёл GitHub
Родитель 3bf90e3522 ae2c18d836
Коммит f7fce8b66d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 47 добавлений и 0 удалений

45
.circleci/config.yml Normal file
Просмотреть файл

@ -0,0 +1,45 @@
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 Normal file

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

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

@ -1,5 +1,7 @@
# DreamHouse Sample Application
[![CircleCI](https://circleci.com/gh/dreamhouseapp/dreamhouse-sfdx.svg?style=svg)](https://circleci.com/gh/dreamhouseapp/dreamhouse-sfdx)
Dreamhouse is a sample application for the real estate business built on the Salesforce platform. It allows brokers to manage their properties and customers to find their dream house.
## Table of contents