<commit_before>sudo: required

services:
  - docker

install:
  - mkdir -p /etc/dnscrypt-wrapper/keys
  - KEYDIR=/etc/dnscrypt-wrapper/keys
  - CONKEYDIR=/opt/dnscrypt-wrapper/etc/keys
  - docker build -t dnscrypt-wrapper-docker .
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --gen-provider-keypair
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --gen-crypt-keypair
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --gen-cert-file
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --show-provider-publickey-fingerprint --provider-publickey-file=public.key

before_script:
  - docker pull dnscryptio/dnscrypt-proxy-docker
  - docker run -d -p 127.0.0.1:53:53/udp dnscryptio/dnscrypt-proxy-docker

script:
  - docker run -d -v $KEYDIR:$CONKEYDIR -p 127.0.0.1:4443:4443/udp dnscrypt-wrapper-docker --listen-address=0.0.0.0:4443 --resolver-address=8.8.8.8:53 --provider-name=2.dnscrypt-cert.test.dnscrypt.io --provider-cert-file=/opt/dnscrypt-wrapper/etc/keys/dnscrypt.cert --crypt-secretkey-file=/opt/dnscrypt-wrapper/etc/keys/crypt_secret.key
  - dig @127.0.0.1 google.com
  - dig @127.0.0.1 dnscrypt.org<commit_msg>No write permission on /etc vOv<commit_after>sudo: required

services:
  - docker

install:
  - mkdir -p /tmp/dnscrypt-wrapper/keys
  - KEYDIR=/tmp/dnscrypt-wrapper/keys
  - CONKEYDIR=/opt/dnscrypt-wrapper/etc/keys
  - docker build -t dnscrypt-wrapper-docker .
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --gen-provider-keypair
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --gen-crypt-keypair
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --gen-cert-file
  - docker run --interactive --tty --rm --volume $KEYDIR:$CONKEYDIR -w $CONKEYDIR dnscrypt-wrapper-docker --show-provider-publickey-fingerprint --provider-publickey-file=public.key

before_script:
  - docker pull dnscryptio/dnscrypt-proxy-docker
  - docker run -d -p 127.0.0.1:53:53/udp dnscryptio/dnscrypt-proxy-docker

script:
  - docker run -d -v $KEYDIR:$CONKEYDIR -p 127.0.0.1:4443:4443/udp dnscrypt-wrapper-docker --listen-address=0.0.0.0:4443 --resolver-address=8.8.8.8:53 --provider-name=2.dnscrypt-cert.test.dnscrypt.io --provider-cert-file=/opt/dnscrypt-wrapper/etc/keys/dnscrypt.cert --crypt-secretkey-file=/opt/dnscrypt-wrapper/etc/keys/crypt_secret.key
  - dig @127.0.0.1 google.com
  - dig @127.0.0.1 dnscrypt.org
{'fraction_non_alphanumeric': 0.1567109144542773, 'fraction_numerical': 0.03761061946902655, 'mean_word_length': 3.4113821138211384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '443403', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1024, 'n_words': 182}