<commit_before>dist: trusty
language: java
env:
  - PROFILE=platform-oxygen,tests
  - PROFILE=platform-photon,tests,updatesites
  - PROFILE=platform-2018-09,tests
  - PROFILE=platform-2018-12,tests
  - PROFILE=platform-2019-03,tests
  - PROFILE=platform-2019-06,tests
  - PROFILE=platform-2019-09,tests
  - PROFILE=platform-sirius-5.1,tests
  - PROFILE=platform-sirius-6.0,tests
  - PROFILE=platform-sirius-6.1.0,tests
  - PROFILE=platform-sirius-6.1.1,tests
  - PROFILE=platform-sirius-6.1.3,tests
  - PROFILE=platform-sirius-6.1.x,tests
  - PROFILE=platform-sirius-6.2.2,tests
  - PROFILE=platform-sirius-6.2.x,tests
  - PROFILE=platform-sirius-6.3.x,tests
  - PROFILE=platform-capella-1.4.0,tests
jdk:
- oraclejdk8
- oraclejdk11

jobs:
  exclude:
    # Java 8 only
  - jdk: oraclejdk11
    env: PROFILE=platform-oxygen,tests
  - if: type = cron
    jdk: oraclejdk8
    env: PROFILE=platform-oxygen,tests

  - jdk: oraclejdk11
    env: PROFILE=platform-photon,tests,updatesites
  - if: type = cron
    jdk: oraclejdk8
    env: PROFILE=platform-photon,tests,updatesites

  - jdk: oraclejdk11
    env: PROFILE=platform-sirius-5.1,tests
  - if: type = cron
    jdk: oraclejdk8
    env: PROFILE=platform-sirius-5.1,tests

    # Java 11 only
  - jdk: oraclejdk8
    env: PROFILE=platform-2018-09,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2018-09,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2018-12,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2018-12,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2019-03,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2019-03,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2019-06,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2019-06,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2019-09,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2019-09,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.0,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.0,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.0,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.1.0,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.1,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.1.1,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.3,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.1.3,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.x,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.2.2,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.2.2,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.2.x,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.3.x,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-capella-1.4.0,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-capella-1.4.0,tests

sudo: required
install: true
before_script:
# for RCPTT tests
- export SWT_GTK3=0
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile
  --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1440x900x16"
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2048m -Xms1024m"
# for the web site
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/website-install.sh && ./scripts/website-install.sh; fi
# for the MS Word add-in
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/word-add-in-install.sh && ./scripts/word-add-in-install.sh; fi
script:
# Build documentation web site
- mkdir plugins/org.obeonetwork.m2doc.doc/doc
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/website-build.sh && ./scripts/website-build.sh; fi
# Build MS Word add-in
- mkdir plugins/org.obeonetwork.m2doc.word.addin/dist/
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/word-add-in-build.sh && ./scripts/word-add-in-build.sh; fi
# Java build
- mvn -v
- mvn clean verify -fae -P$PROFILE
- export TAG_OR_BRANCH="${TRAVIS_BRANCH}/nightly"
- if [[ "$TRAVIS_TAG" != "" ]]; then export TAG_OR_BRANCH="${TRAVIS_TAG}"; fi
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/prepare-deploy-local-dir.sh && ./scripts/prepare-deploy-local-dir.sh
  $TRAVIS_BUILD_DIR/$TAG_OR_BRANCH; export UPDATE_SITES=true; fi
after_script:
- if [[ "$TAG_OR_BRANCH" != "" ]]; then chmod a+x ./scripts/travis-promote.sh && ./scripts/travis-promote.sh; fi
deploy:<commit_msg>Fixed missing fi.<commit_after>dist: trusty
language: java
env:
  - PROFILE=platform-oxygen,tests
  - PROFILE=platform-photon,tests,updatesites
  - PROFILE=platform-2018-09,tests
  - PROFILE=platform-2018-12,tests
  - PROFILE=platform-2019-03,tests
  - PROFILE=platform-2019-06,tests
  - PROFILE=platform-2019-09,tests
  - PROFILE=platform-sirius-5.1,tests
  - PROFILE=platform-sirius-6.0,tests
  - PROFILE=platform-sirius-6.1.0,tests
  - PROFILE=platform-sirius-6.1.1,tests
  - PROFILE=platform-sirius-6.1.3,tests
  - PROFILE=platform-sirius-6.1.x,tests
  - PROFILE=platform-sirius-6.2.2,tests
  - PROFILE=platform-sirius-6.2.x,tests
  - PROFILE=platform-sirius-6.3.x,tests
  - PROFILE=platform-capella-1.4.0,tests
jdk:
- oraclejdk8
- oraclejdk11

jobs:
  exclude:
    # Java 8 only
  - jdk: oraclejdk11
    env: PROFILE=platform-oxygen,tests
  - if: type = cron
    jdk: oraclejdk8
    env: PROFILE=platform-oxygen,tests

  - jdk: oraclejdk11
    env: PROFILE=platform-photon,tests,updatesites
  - if: type = cron
    jdk: oraclejdk8
    env: PROFILE=platform-photon,tests,updatesites

  - jdk: oraclejdk11
    env: PROFILE=platform-sirius-5.1,tests
  - if: type = cron
    jdk: oraclejdk8
    env: PROFILE=platform-sirius-5.1,tests

    # Java 11 only
  - jdk: oraclejdk8
    env: PROFILE=platform-2018-09,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2018-09,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2018-12,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2018-12,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2019-03,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2019-03,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2019-06,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2019-06,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-2019-09,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-2019-09,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.0,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.0,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.0,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.1.0,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.1,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.1.1,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.3,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.1.3,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.1.x,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.2.2,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-sirius-6.2.2,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.2.x,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-sirius-6.3.x,tests

  - jdk: oraclejdk8
    env: PROFILE=platform-capella-1.4.0,tests
  - if: type = cron
    jdk: oraclejdk11
    env: PROFILE=platform-capella-1.4.0,tests

sudo: required
install: true
before_script:
# for RCPTT tests
- export SWT_GTK3=0
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile
  --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1440x900x16"
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2048m -Xms1024m"
# for the web site
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/website-install.sh && ./scripts/website-install.sh; fi
# for the MS Word add-in
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/word-add-in-install.sh && ./scripts/word-add-in-install.sh; fi
script:
# Build documentation web site
- mkdir plugins/org.obeonetwork.m2doc.doc/doc
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/website-build.sh && ./scripts/website-build.sh; fi
# Build MS Word add-in
- mkdir plugins/org.obeonetwork.m2doc.word.addin/dist/
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/word-add-in-build.sh && ./scripts/word-add-in-build.sh; fi
# Java build
- mvn -v
- mvn clean verify -fae -P$PROFILE
- export TAG_OR_BRANCH="${TRAVIS_BRANCH}/nightly"
- if [[ "$TRAVIS_TAG" != "" ]]; then export TAG_OR_BRANCH="${TRAVIS_TAG}"; fi
- if [[ "$PROFILE" == *"updatesites"* ]]; then chmod a+x ./scripts/prepare-deploy-local-dir.sh && ./scripts/prepare-deploy-local-dir.sh
  $TRAVIS_BUILD_DIR/$TAG_OR_BRANCH; export UPDATE_SITES=true; fi
after_script:
- if [[ "$TAG_OR_BRANCH" != "" ]]; then chmod a+x ./scripts/travis-promote.sh && ./scripts/travis-promote.sh;
  fi
deploy:
{'fraction_non_alphanumeric': 0.1485180412371134, 'fraction_numerical': 0.05197594501718213, 'mean_word_length': 3.268102658111824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3333492', 'n_tokens_mistral': 4141, 'n_tokens_neox': 3780, 'n_words': 661}