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
Showing
23 changed files
with
426 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,47 @@ | ||
sudo: true | ||
node_js: "7" | ||
os: xenial | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
env: | ||
global: | ||
- SFDX_ALIAS=jpmonette-q-$TRAVIS_BUILD_NUMBER | ||
|
||
before_script: | ||
- export URL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz | ||
- export SFDX_AUTOUPDATE_DISABLE=false | ||
- export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true | ||
- export SFDX_DOMAIN_RETRY=300 | ||
- export SFDX_DISABLE_APP_HUB=true | ||
- export SFDX_LOG_LEVEL=DEBUG | ||
- export SFDX_ALIAS=servier-ci-$TRAVIS_BUILD_NUMBER | ||
- mkdir sfdx | ||
- wget -qO- $URL | tar xJ -C sfdx --strip-components 1 | ||
- "./sfdx/install" | ||
- export PATH=./sfdx/$(pwd):$PATH | ||
- sfdx update | ||
- sfdx --version | ||
- sfdx plugins --core | ||
- npm install apexcov coveralls -g | ||
- echo force://$CLIENT_ID:$CLIENT_SECRET:$REFRESH_TOKEN@$INSTANCE_URL > .sfdx-url | ||
- sfdx force:auth:sfdxurl:store --setdefaultdevhubusername --sfdxurlfile ./.sfdx-url --setalias DefaultOrg | ||
- echo y | sfdx plugins:install @mavens/sfdx-commands | ||
jobs: | ||
include: | ||
- stage: "Static code analysis" | ||
name: 🕵🏼♂️ Static code analysis (PMD) | ||
install: bash scripts/ci/installPMD.sh | ||
script: bash scripts/ci/runPMD.sh | ||
|
||
script: | ||
- sfdx force:org:create --setdefaultusername --definitionfile scratchdef.json --setalias ci | ||
- sfdx force:source:push | ||
- mkdir coverage | ||
- sfdx force:apex:test:run --codecoverage --testlevel=RunLocalTests --resultformat=human --outputdir=coverage | ||
- sfdx mavens:ci:lcov | ||
- sfdx force:org:delete --noprompt | ||
- cat ./coverage/lcov.info | coveralls | ||
- stage: "Salesforce Scratch-Org" | ||
name: 🚀 Creating Scratch-Org | ||
workspaces: | ||
create: | ||
name: sfdx | ||
paths: | ||
- sfdx # for the sfdx install files | ||
- $HOME/.sfdx # for the authenticated orgs | ||
install: bash scripts/ci/installSFDX.sh | ||
script: bash scripts/ci/createOrg.sh | ||
|
||
- stage: "Push" | ||
name: "🙇 Pushing Metadata" | ||
workspaces: | ||
use: sfdx | ||
install: bash scripts/ci/installDX.sh | ||
script: bash scripts/ci/push.sh | ||
|
||
- stage: "Tests" | ||
name: "🧪 Running Apex Tests" | ||
env: dir=null | ||
workspaces: | ||
use: sfdx | ||
install: bash scripts/ci/installDX.sh | ||
script: bash scripts/ci/runApexTests.sh | ||
|
||
- stage: "Cleanup" | ||
name: "🧹 Deleting Scratch Org" | ||
env: dir=null | ||
workspaces: | ||
use: sfdx | ||
install: bash scripts/ci/installDX.sh | ||
script: bash scripts/ci/deleteOrg.sh |
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
File renamed without changes.
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>39.0</apiVersion> | ||
<apiVersion>48.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>39.0</apiVersion> | ||
<apiVersion>48.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>39.0</apiVersion> | ||
<apiVersion>48.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>39.0</apiVersion> | ||
<apiVersion>48.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>39.0</apiVersion> | ||
<apiVersion>48.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
Oops, something went wrong.