<commit_before>branches:
    - master
    - auto
    - try

required: true
context: f27-primary

container:
    image: registry.fedoraproject.org/fedora:27

env:
    # Enable all the sanitizers for this primary build.
    # We only use -Werror=maybe-uninitialized here with a "fixed" toolchain
    CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2'
    # Only for CI with a known g-ir-scanner
    GI_SCANNERFLAGS: '--warn-error'
    ASAN_OPTIONS: 'detect_leaks=0'  # Right now we're not fully clean, but this gets us use-after-free etc
    # TODO when we're doing leak checks: G_SLICE: "always-malloc"
    CONFIGOPTS: '--with-curl --with-openssl'

tests:
  - ci/ci-commitmessage-submodules.sh
  - ci/build-check.sh
  - ci/ci-release-build.sh

timeout: 30m

# Keep this in sync with build-check.sh
artifacts:
  - test-suite.log
  - config.log
  - gdtr-results
---

context: c7-primary
inherit: true
required: true

host:
  distro: centos/7/atomic

env:
    CFLAGS: ''
    CONFIGOPTS: '--with-curl --with-openssl'

tests:
  - docker run --privileged -v $PWD:$PWD --workdir $PWD
    registry.centos.org/centos/centos:7 sh -c
    'yum install -y git && ci/build-check.sh'

---

context: f26-rust
inherit: true
container:
    image: registry.fedoraproject.org/fedora:26
env:
  CONFIGOPTS: '--enable-rust'
  CI_PKGS: cargo

tests:
    - ci/build.sh
    - make check TESTS=tests/test-rollsum

---

context: f26-gnutls
inherit: true
container:
    image: registry.fedoraproject.org/fedora:26
env:
  CONFIGOPTS: '--with-crypto=gnutls'
  CI_PKGS: pkgconfig(gnutls)

tests:
    - ci/build.sh
    - make check TESTS=tests/test-basic.sh

---

inherit: true

context: f26-experimental-api
env:
  CONFIGOPTS: '--enable-experimental-api'

tests:
  - ci/build-check.sh

---

inherit: true

context: f26-minimal
env:
  CONFIGOPTS: '--without-curl --without-soup --disable-gtk-doc --disable-man
   --disable-rust --without-libarchive --without-selinux --without-smack
   --without-openssl --without-avahi --without-libmount --disable-rofiles-fuse
   --disable-experimental-api'

tests:
  - ci/build.sh

---

inherit: true
required: true

context: f26-libsoup

env:
  CONFIGOPTS: "--without-curl --without-openssl --with-libsoup"

tests:
  - ci/build-check.sh

---

inherit: true
required: true

context: f26-introspection-tests

env:
    # ASAN conflicts with introspection testing;
    # See https://github.com/ostreedev/ostree/issues/1014
    INSTALLED_TESTS_PATTERN: "libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js"

tests:
  - ci/build-check.sh

---

inherit: false
branches:
    - master
    - auto
    - try

context: f26ah-insttest
required: false

cluster:
  hosts:
    - name: vmcheck
      distro: fedora/26/atomic
  container:
    image: registry.fedoraproject.org/fedora:26

# Copy the build from the container to the host; ideally down the line
# this is installing an RPM via https://github.com/jlebon/redhat-ci/issues/10
tests:
  - ci/build.sh
  - make install DESTDIR=$(pwd)/insttree
  - yum -y install rsync
  - rsync -rl -e 'ssh -o User=root' . vmcheck:ostree/
  - ssh root@vmcheck './ostree/tests/installed/fah-prep.sh && ./ostree/tests/installed/run.sh'

---

inherit: false
branches:
    - master
    - auto
    - try<commit_msg>ci/papr: Update most contexts to f27<commit_after>branches:
    - master
    - auto
    - try

required: true
context: f27-primary

container:
    image: registry.fedoraproject.org/fedora:27

env:
    # Enable all the sanitizers for this primary build.
    # We only use -Werror=maybe-uninitialized here with a "fixed" toolchain
    CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2'
    # Only for CI with a known g-ir-scanner
    GI_SCANNERFLAGS: '--warn-error'
    ASAN_OPTIONS: 'detect_leaks=0'  # Right now we're not fully clean, but this gets us use-after-free etc
    # TODO when we're doing leak checks: G_SLICE: "always-malloc"
    CONFIGOPTS: '--with-curl --with-openssl'

tests:
  - ci/ci-commitmessage-submodules.sh
  - ci/build-check.sh
  - ci/ci-release-build.sh

timeout: 30m

# Keep this in sync with build-check.sh
artifacts:
  - test-suite.log
  - config.log
  - gdtr-results
---

context: c7-primary
inherit: true
required: true

host:
  distro: centos/7/atomic

env:
    CFLAGS: ''
    CONFIGOPTS: '--with-curl --with-openssl'

tests:
  - docker run --privileged -v $PWD:$PWD --workdir $PWD
    registry.centos.org/centos/centos:7 sh -c
    'yum install -y git && ci/build-check.sh'

---

context: f27-rust
inherit: true
container:
    image: registry.fedoraproject.org/fedora:27
env:
  CONFIGOPTS: '--enable-rust'
  CI_PKGS: cargo

tests:
    - ci/build.sh
    - make check TESTS=tests/test-rollsum

---

context: f27-gnutls
inherit: true
container:
    image: registry.fedoraproject.org/fedora:27
env:
  CONFIGOPTS: '--with-crypto=gnutls'
  CI_PKGS: pkgconfig(gnutls)

tests:
    - ci/build.sh
    - make check TESTS=tests/test-basic.sh

---

inherit: true

context: f27-experimental-api
env:
  CONFIGOPTS: '--enable-experimental-api'

tests:
  - ci/build-check.sh

---

inherit: true

context: f27-minimal
env:
  CONFIGOPTS: '--without-curl --without-soup --disable-gtk-doc --disable-man
   --disable-rust --without-libarchive --without-selinux --without-smack
   --without-openssl --without-avahi --without-libmount --disable-rofiles-fuse
   --disable-experimental-api'

tests:
  - ci/build.sh

---

inherit: true
required: true

context: f27-libsoup

env:
  CONFIGOPTS: "--without-curl --without-openssl --with-libsoup"

tests:
  - ci/build-check.sh

---

inherit: true
required: true

context: f27-introspection-tests

env:
    # ASAN conflicts with introspection testing;
    # See https://github.com/ostreedev/ostree/issues/1014
    INSTALLED_TESTS_PATTERN: "libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js"

tests:
  - ci/build-check.sh

---

inherit: false
branches:
    - master
    - auto
    - try

context: f27ah-insttest
required: false

cluster:
  hosts:
    - name: vmcheck
      distro: fedora/27/atomic
  container:
    image: registry.fedoraproject.org/fedora:27

# Copy the build from the container to the host; ideally down the line
# this is installing an RPM via https://github.com/jlebon/redhat-ci/issues/10
tests:
  - ci/build.sh
  - make install DESTDIR=$(pwd)/insttree
  - yum -y install rsync
  - rsync -rl -e 'ssh -o User=root' . vmcheck:ostree/
  - ssh root@vmcheck './ostree/tests/installed/fah-prep.sh && ./ostree/tests/installed/run.sh'

---

inherit: false
branches:
    - master
    - auto
    - try
{'fraction_non_alphanumeric': 0.13091127458339588, 'fraction_numerical': 0.012310463894310163, 'mean_word_length': 2.925751325869181, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '544996', 'n_tokens_mistral': 2564, 'n_tokens_neox': 2461, 'n_words': 558}