<commit_before># SUMMARY:
# Builds & tests xapi with coverage in a Ubuntu 16.04 Docker container with
# OCaml 4.02.3, then uploads the coverage information to coveralls.

set -uex

# Currently there is no way of specifying OPAM depexts for multiple versions of
# a given disto, and our current depexts only work with Ubuntu >= 16.04, due to
# a change in packages (libsystemd-dev). Since the build environments of Travis
# are older then Ubuntu 16.04, we have to run the build in a Docker container
# with an appropriate Ubuntu version.
# We need to pass some Travis environment variables to the container to enable
# uploading to coveralls and detection of Travis CI.
docker run --rm --volume=$PWD:/mnt --workdir=/mnt \
  --env "TRAVIS=$TRAVIS" \
  --env "TRAVIS_JOB_ID=$TRAVIS_JOB_ID" \
  ocaml/opam:ubuntu-16.04_ocaml-4.04.2 \
  bash -uex -c '
sudo apt-get update

sudo chown -R $(whoami) .

# replace the base remote with xs-opam
opam repository remove default<commit_msg>Travis script: update wrong comment<commit_after># SUMMARY:
# Builds & tests xapi with coverage in a Ubuntu 16.04 Docker container with
# OCaml 4.04.2, then uploads the coverage information to coveralls.

set -uex

# Currently there is no way of specifying OPAM depexts for multiple versions of
# a given disto, and our current depexts only work with Ubuntu >= 16.04, due to
# a change in packages (libsystemd-dev). Since the build environments of Travis
# are older then Ubuntu 16.04, we have to run the build in a Docker container
# with an appropriate Ubuntu version.
# We need to pass some Travis environment variables to the container to enable
# uploading to coveralls and detection of Travis CI.
docker run --rm --volume=$PWD:/mnt --workdir=/mnt \
  --env "TRAVIS=$TRAVIS" \
  --env "TRAVIS_JOB_ID=$TRAVIS_JOB_ID" \
  ocaml/opam:ubuntu-16.04_ocaml-4.04.2 \
  bash -uex -c '
sudo apt-get update

sudo chown -R $(whoami) .

# replace the base remote with xs-opam
opam repository remove default
{'fraction_non_alphanumeric': 0.08156028368794327, 'fraction_numerical': 0.0243161094224924, 'mean_word_length': 3.8288508557457215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4477337', 'n_tokens_mistral': 705, 'n_tokens_neox': 611, 'n_words': 271}