Hex Artifact Content
Not logged in

Artifact 3a4127419ee4f9024cb815e788a1b5405b5002d3:


0000: 6d 61 63 68 69 6e 65 3a 0a 20 20 6a 61 76 61 3a  machine:.  java:
0010: 0a 20 20 20 20 76 65 72 73 69 6f 6e 3a 20 6f 72  .    version: or
0020: 61 63 6c 65 6a 64 6b 38 0a 20 20 70 6f 73 74 3a  aclejdk8.  post:
0030: 0a 20 20 20 20 23 20 61 70 70 6c 79 20 74 68 65  .    # apply the
0040: 20 4a 43 45 20 75 6e 6c 69 6d 69 74 65 64 20 73   JCE unlimited s
0050: 74 72 65 6e 67 74 68 20 70 6f 6c 69 63 79 20 74  trength policy t
0060: 6f 20 61 6c 6c 6f 77 20 74 68 65 20 50 53 4b 20  o allow the PSK 
0070: 32 35 36 20 62 69 74 20 6b 65 79 20 6c 65 6e 67  256 bit key leng
0080: 74 68 0a 20 20 20 20 23 20 73 6f 6c 75 74 69 6f  th.    # solutio
0090: 6e 20 66 72 6f 6d 20 68 74 74 70 3a 2f 2f 71 69  n from http://qi
00a0: 69 74 61 2e 63 6f 6d 2f 79 6f 73 6b 68 64 69 61  ita.com/yoskhdia
00b0: 2f 69 74 65 6d 73 2f 66 34 37 30 32 61 33 61 62  /items/f4702a3ab
00c0: 63 34 34 36 37 64 65 36 39 62 30 0a 20 20 20 20  c4467de69b0.    
00d0: 2d 20 63 75 72 6c 20 2d 4c 20 2d 2d 63 6f 6f 6b  - curl -L --cook
00e0: 69 65 20 27 6f 72 61 63 6c 65 6c 69 63 65 6e 73  ie 'oraclelicens
00f0: 65 3d 61 63 63 65 70 74 2d 73 65 63 75 72 65 62  e=accept-secureb
0100: 61 63 6b 75 70 2d 63 6f 6f 6b 69 65 3b 27 20 20  ackup-cookie;'  
0110: 68 74 74 70 3a 2f 2f 64 6f 77 6e 6c 6f 61 64 2e  http://download.
0120: 6f 72 61 63 6c 65 2e 63 6f 6d 2f 6f 74 6e 2d 70  oracle.com/otn-p
0130: 75 62 2f 6a 61 76 61 2f 6a 63 65 2f 38 2f 6a 63  ub/java/jce/8/jc
0140: 65 5f 70 6f 6c 69 63 79 2d 38 2e 7a 69 70 20 2d  e_policy-8.zip -
0150: 6f 20 2f 74 6d 70 2f 6a 63 65 5f 70 6f 6c 69 63  o /tmp/jce_polic
0160: 79 2e 7a 69 70 0a 20 20 20 20 2d 20 75 6e 7a 69  y.zip.    - unzi
0170: 70 20 2d 6f 20 2f 74 6d 70 2f 6a 63 65 5f 70 6f  p -o /tmp/jce_po
0180: 6c 69 63 79 2e 7a 69 70 20 2d 64 20 2f 74 6d 70  licy.zip -d /tmp
0190: 0a 20 20 20 20 2d 20 73 75 64 6f 20 6d 76 20 2d  .    - sudo mv -
01a0: 66 20 2f 74 6d 70 2f 55 6e 6c 69 6d 69 74 65 64  f /tmp/Unlimited
01b0: 4a 43 45 50 6f 6c 69 63 79 4a 44 4b 38 2f 55 53  JCEPolicyJDK8/US
01c0: 5f 65 78 70 6f 72 74 5f 70 6f 6c 69 63 79 2e 6a  _export_policy.j
01d0: 61 72 20 24 4a 41 56 41 5f 48 4f 4d 45 2f 6a 72  ar $JAVA_HOME/jr
01e0: 65 2f 6c 69 62 2f 73 65 63 75 72 69 74 79 2f 55  e/lib/security/U
01f0: 53 5f 65 78 70 6f 72 74 5f 70 6f 6c 69 63 79 2e  S_export_policy.
0200: 6a 61 72 0a 20 20 20 20 2d 20 73 75 64 6f 20 6d  jar.    - sudo m
0210: 76 20 2d 66 20 2f 74 6d 70 2f 55 6e 6c 69 6d 69  v -f /tmp/Unlimi
0220: 74 65 64 4a 43 45 50 6f 6c 69 63 79 4a 44 4b 38  tedJCEPolicyJDK8
0230: 2f 6c 6f 63 61 6c 5f 70 6f 6c 69 63 79 2e 6a 61  /local_policy.ja
0240: 72 20 24 4a 41 56 41 5f 48 4f 4d 45 2f 6a 72 65  r $JAVA_HOME/jre
0250: 2f 6c 69 62 2f 73 65 63 75 72 69 74 79 2f 6c 6f  /lib/security/lo
0260: 63 61 6c 5f 70 6f 6c 69 63 79 2e 6a 61 72 0a 0a  cal_policy.jar..
0270: 64 65 70 65 6e 64 65 6e 63 69 65 73 3a 0a 20 20  dependencies:.  
0280: 6f 76 65 72 72 69 64 65 3a 0a 20 20 20 20 2d 20  override:.    - 
0290: 6d 76 6e 20 2d 44 73 6b 69 70 54 65 73 74 73 20  mvn -DskipTests 
02a0: 63 6c 65 61 6e 20 69 6e 73 74 61 6c 6c 20 64 65  clean install de
02b0: 70 65 6e 64 65 6e 63 79 3a 72 65 73 6f 6c 76 65  pendency:resolve
02c0: 2d 70 6c 75 67 69 6e 73 20 64 65 70 65 6e 64 65  -plugins depende
02d0: 6e 63 79 3a 67 6f 2d 6f 66 66 6c 69 6e 65 0a 0a  ncy:go-offline..
02e0: 74 65 73 74 3a 0a 20 20 6f 76 65 72 72 69 64 65  test:.  override
02f0: 3a 0a 20 20 20 20 2d 20 6d 76 6e 20 73 75 72 65  :.    - mvn sure
0300: 66 69 72 65 3a 74 65 73 74 0a 0a 20 20 70 6f 73  fire:test..  pos
0310: 74 3a 0a 20 20 20 20 23 20 72 75 6e 20 74 68 65  t:.    # run the
0320: 20 63 68 65 63 6b 73 74 79 6c 65 20 72 65 70 6f   checkstyle repo
0330: 72 74 0a 20 20 20 20 2d 20 6d 76 6e 20 63 68 65  rt.    - mvn che
0340: 63 6b 73 74 79 6c 65 3a 63 68 65 63 6b 73 74 79  ckstyle:checksty
0350: 6c 65 0a 0a 20 20 20 20 23 20 67 61 74 68 65 72  le..    # gather
0360: 20 74 68 65 20 6a 75 6e 69 74 20 72 65 70 6f 72   the junit repor
0370: 74 73 2c 20 73 65 65 20 68 74 74 70 73 3a 2f 2f  ts, see https://
0380: 63 69 72 63 6c 65 63 69 2e 63 6f 6d 2f 64 6f 63  circleci.com/doc
0390: 73 2f 74 65 73 74 2d 6d 65 74 61 64 61 74 61 2f  s/test-metadata/
03a0: 23 67 72 61 64 6c 65 2d 6a 75 6e 69 74 2d 72 65  #gradle-junit-re
03b0: 73 75 6c 74 73 0a 20 20 20 20 2d 20 6d 6b 64 69  sults.    - mkdi
03c0: 72 20 2d 70 20 24 43 49 52 43 4c 45 5f 54 45 53  r -p $CIRCLE_TES
03d0: 54 5f 52 45 50 4f 52 54 53 2f 6a 75 6e 69 74 2f  T_REPORTS/junit/
03e0: 0a 20 20 20 20 2d 20 66 69 6e 64 20 2e 20 2d 74  .    - find . -t
03f0: 79 70 65 20 66 20 2d 72 65 67 65 78 20 22 2e 2a  ype f -regex ".*
0400: 2f 74 61 72 67 65 74 2f 73 75 72 65 66 69 72 65  /target/surefire
0410: 2d 72 65 70 6f 72 74 73 2f 2e 2a 78 6d 6c 22 20  -reports/.*xml" 
0420: 2d 65 78 65 63 20 63 70 20 7b 7d 20 24 43 49 52  -exec cp {} $CIR
0430: 43 4c 45 5f 54 45 53 54 5f 52 45 50 4f 52 54 53  CLE_TEST_REPORTS
0440: 2f 6a 75 6e 69 74 2f 20 5c 3b 0a 0a 20 20 20 20  /junit/ \;..    
0450: 2d 20 6d 6b 64 69 72 20 2d 70 20 24 43 49 52 43  - mkdir -p $CIRC
0460: 4c 45 5f 54 45 53 54 5f 52 45 50 4f 52 54 53 2f  LE_TEST_REPORTS/
0470: 63 68 65 63 6b 73 74 79 6c 65 2f 0a 20 20 20 20  checkstyle/.    
0480: 2d 20 66 69 6e 64 20 2e 20 2d 74 79 70 65 20 66  - find . -type f
0490: 20 2d 72 65 67 65 78 20 22 2e 2a 2f 74 61 72 67   -regex ".*/targ
04a0: 65 74 2f 63 68 65 63 6b 73 74 79 6c 65 2d 72 65  et/checkstyle-re
04b0: 70 6f 72 74 73 2f 2e 2a 78 6d 6c 22 20 2d 65 78  ports/.*xml" -ex
04c0: 65 63 20 63 70 20 7b 7d 20 24 43 49 52 43 4c 45  ec cp {} $CIRCLE
04d0: 5f 54 45 53 54 5f 52 45 50 4f 52 54 53 2f 63 68  _TEST_REPORTS/ch
04e0: 65 63 6b 73 74 79 6c 65 2f 20 5c 3b 0a 0a 20 20  eckstyle/ \;..  
04f0: 20 20 23 20 70 75 62 6c 69 73 68 20 74 68 65 20    # publish the 
0500: 63 6f 76 65 72 61 67 65 20 72 65 70 6f 72 74 20  coverage report 
0510: 74 6f 20 63 6f 64 65 63 6f 76 2e 69 6f 0a 20 20  to codecov.io.  
0520: 20 20 2d 20 62 61 73 68 20 3c 28 63 75 72 6c 20    - bash <(curl 
0530: 2d 73 20 68 74 74 70 73 3a 2f 2f 63 6f 64 65 63  -s https://codec
0540: 6f 76 2e 69 6f 2f 62 61 73 68 29 0a              ov.io/bash).