From 80c3eb255030011968ed8866f6f8f6b5dd3759eb Mon Sep 17 00:00:00 2001 From: Evgeny Sukach Date: Fri, 28 Aug 2020 14:32:26 +0300 Subject: [PATCH 1/3] Updated YAML --- .gitignore | 1 + .travis.yml | 11 ++++------- assets/server.key.enc | Bin 1680 -> 1722 bytes 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index e8fa64baa..bbeff362e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ node_modules .settings selenium-client-jars/ test/artifacts +assets/server.key diff --git a/.travis.yml b/.travis.yml index c6dd32788..51e022b0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,9 @@ sudo: true os: trusty cache: false - env: - URL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz - before_install: -- openssl aes-256-cbc -K $encrypted_b1fbf710b918_key -iv $encrypted_b1fbf710b918_iv - -in assets/server.key.enc -out assets/server.key -d - export SFDX_AUTOUPDATE_DISABLE=false - export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true - export SFDX_DOMAIN_RETRY=300 @@ -19,10 +15,11 @@ before_install: - export PATH=./sfdx/$(pwd):$PATH - sfdx --version - sfdx plugins --core -- sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile assets/server.key --username $USERNAME --setdefaultdevhubusername -a HubOrg - +- sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile assets/server.key + --username $USERNAME --setdefaultdevhubusername -a HubOrg script: -- sfdx force:org:create -v HubOrg -s -f config/project-scratch-def.json -a ciorg --wait 3 +- sfdx force:org:create -v HubOrg -s -f config/project-scratch-def.json -a ciorg --wait + 3 - sfdx force:org:display -u ciorg - sfdx force:source:push -u ciorg - sfdx force:apex:test:run -u ciorg --wait 10 diff --git a/assets/server.key.enc b/assets/server.key.enc index 3787054e00e0f627c5f9a0db79c2f1999baf389b..b69b51a0d13057c2b4c42afd9f628a154a1c56c3 100644 GIT binary pat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mbdbx$(;&g(J(DPa96xAI-pn`T?D~gwJq6W@1U@_uNH~&n=O(Rozbe00MPA$U;rb zz3c2%`G~=4Bm3YLKF*7Zxj5szGKL)hfp}QcB6HH5lEHF}bt$ER5RMU$FqWszFJug`cl&|C4S7{B^K z+i1j3hB`KB4}ly89Z>*1r+HJwBUr)goz9w0tIi&FUvdqnAMz0-9W`G0E#zbkO12sL==6 ar~&qWbO4R0q1CyqCW>JmHA4AOcuL(LuQJpC From 82faaab2763ae6339462f17931a5a057d30db59a Mon Sep 17 00:00:00 2001 From: Evgeny Sukach Date: Fri, 28 Aug 2020 14:51:20 +0300 Subject: [PATCH 2/3] modified yml file --- .travis.yml | 2 ++ assets/server.key.enc | Bin 1722 -> 1716 bytes 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 51e022b0b..23df39b60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ cache: false env: - URL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz before_install: +- openssl aes-256-cbc -K $encrypted_79a2f6093848_key -iv $encrypted_79a2f6093848_iv + -in assets/server.key.enc -out assets/server.key -d - export SFDX_AUTOUPDATE_DISABLE=false - export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true - export SFDX_DOMAIN_RETRY=300 diff --git a/assets/server.key.enc b/assets/server.key.enc index b69b51a0d13057c2b4c42afd9f628a154a1c56c3..66a12bef32b5854c9b4473793af79af65d785aca 100644 GIT binary patch literal 1716 zcmV;l221%coLT?8XaB!d8{4b@G^MUJBX z&zJ#I?&;z z{F6@7lJa+FjuLvDcR%8UGcd+XWRm6FftAAqMPsG(eWYGshMZ+dlrZbx{>}P}1T#q_ zABgIH79U>Id2bwal%ABB=#xJ+I_#Qb))-*p@qh!7xAT2^=)lGx2^>)3od@4Py}xcY z`m0C%on(3FGJ>EvcKfxfzD@srwtlI+XHbfZAgOx`?TMJVX%Sf==!YM!el$qOJ zb6nFSV<3(k8o?GLB7J}5#;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)3NSrkH0pfV3!8Nlmf#uDBz`SI z#T04tRuw$}y@!egR?q`(&8c5+ySMvJpYpiZ+O0^w?#eANJmu^%0Pq>b!ulGO^Hs%wd#P`qqF0{XoULA!k-n+w<}Av-ZlQ^lQWa)+a{+?8a+MI|X Date: Fri, 28 Aug 2020 15:21:58 +0300 Subject: [PATCH 3/3] unit tests --- force-app/main/default/classes/mytest.cls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/force-app/main/default/classes/mytest.cls b/force-app/main/default/classes/mytest.cls index c511d0421..9fb88cc4c 100644 --- a/force-app/main/default/classes/mytest.cls +++ b/force-app/main/default/classes/mytest.cls @@ -8,4 +8,10 @@ private class mytest { // Uncomment the following line to cause a build failure // System.assert(false); } + static void myUnitTest2() { + myclass demo = new myclass(); + System.assertEquals(demo.getAppVersion(), '1.0.0'); + // Uncomment the following line to cause a build failure + // System.assert(false); + } }