<commit_before>version: 2
jobs:
  gcc5_python27:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: test with python2.7
          command: |
            python ./waf configure
            python ./waf --check
      - run:
          name: build with python2.7
          command: |
            python ./waf build
            python ./waf install
  gcc5_python34:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: test with python3.4
          command: |
            apt update -y
            apt install -y python3
            python3 ./waf configure
            python3 ./waf --check
      - run:
          name: build with python3.4
          command: |
            python3 ./waf build
            python3 ./waf install
  gcc5_c++11_python34:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: test with python3.4
          command: |
            apt update -y
            apt install -y python3
            CPPFLAGS="-std=c++11 -I/usr/include/postgresql -Wno-deprecated-declarations" python3 ./waf configure --disable-fcgi
            python3 ./waf --check
      - run:
          name: build with python3.4
          command: |
            python3 ./waf build
            python3 ./waf install
  gcc5_full:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: build msgpack
          command: |
            wget https://github.com/msgpack/msgpack-c/releases/download/cpp-0.5.9/msgpack-0.5.9.tar.gz
            tar zxvf msgpack-0.5.9.tar.gz && cd msgpack-0.5.9
            ./configure && make && make install
      - run:
          name: build fcgi
          command: |
            wget https://github.com/FastCGI-Archives/FastCGI.com/raw/master/original_snapshot/fcgi-2.4.1-SNAP-0910052249.tar.gz
            tar zxvf fcgi-2.4.1-SNAP-0910052249.tar.gz && cd fcgi-2.4.1-SNAP-0910052249
            curl https://gist.githubusercontent.com/himkt/fa07b36c9afec57db067c725e8e5e4d8/raw/d5f424a22eba7a2c139324f0b9638b84fe0afafc/fcgi.patch > patch
            patch -u libfcgi/fcgio.cpp < patch
            ./configure && make && make install
      - run:
          name: build mysql
          command: |
            apt update -y
            apt install libmysqlclient-dev libmysqlclient18 mysql-common
      - run:
          name: build postgresql
          command: |
            apt update -y
            apt install -y postgresql postgresql-server-dev-all
      - run:
          name: build pficommon
          command: |
            CPPFLAGS="-I/usr/include/postgresql" ./waf configure --disable-fcgi
            ./waf build
            ./waf install
  gcc5_c++11_full:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: build msgpack
          command: |
            wget https://github.com/msgpack/msgpack-c/releases/download/cpp-0.5.9/msgpack-0.5.9.tar.gz
            tar zxvf msgpack-0.5.9.tar.gz && cd msgpack-0.5.9
            ./configure && make && make install
      - run:
          name: build fcgi
          command: |
            wget https://github.com/FastCGI-Archives/FastCGI.com/raw/master/original_snapshot/fcgi-2.4.1-SNAP-0910052249.tar.gz
            tar zxvf fcgi-2.4.1-SNAP-0910052249.tar.gz && cd fcgi-2.4.1-SNAP-0910052249
            curl https://gist.githubusercontent.com/himkt/fa07b36c9afec57db067c725e8e5e4d8/raw/d5f424a22eba7a2c139324f0b9638b84fe0afafc/fcgi.patch > patch
            patch -u libfcgi/fcgio.cpp < patch
            ./configure && make && make install
      - run:
          name: build mysql
          command: |
            apt update -y
            apt install libmysqlclient-dev libmysqlclient18 mysql-common
      - run:
          name: build postgresql
          command: |
            apt update -y
            apt install -y postgresql postgresql-server-dev-all
      - run:
          name: build pficommon
          command: |
            CPPFLAGS="-std=c++11 -I/usr/include/postgresql -Wno-deprecated-declarations" ./waf configure --disable-fcgi
            ./waf build
            ./waf install

workflows:
  version: 2
  build_and_test:
    jobs:
      - gcc5_python27
      - gcc5_python34
      - gcc5_c++11_python34
      - gcc5_full
      - gcc5_c++11_full<commit_msg>Run test for all jobs<commit_after>version: 2
jobs:
  gcc5_python27:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: configure and test using python2.7
          command: |
            python ./waf configure
            python ./waf --check
      - run:
          name: build using python2.7
          command: |
            python ./waf build
            python ./waf install
  gcc5_python34:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: install python3.4
          command: |
            apt update -y
            apt install -y python3
      - run:
          name: configure and test using python3.4
          command: |
            python3 ./waf configure
            python3 ./waf --check
      - run:
          name: build using python3.4
          command: |
            python3 ./waf build
            python3 ./waf install
  gcc5_c++11_python34:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: install python3.4
          command: |
            apt update -y
            apt install -y python3
      - run:
          name: configure and test using python3.4 and c++11
          command: |
            CPPFLAGS="-std=c++11 -I/usr/include/postgresql -Wno-deprecated-declarations" python3 ./waf configure --disable-fcgi
            python3 ./waf --check
      - run:
          name: build using python3.4
          command: |
            python3 ./waf build
            python3 ./waf install
  gcc5_full:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: install msgpack
          command: |
            wget https://github.com/msgpack/msgpack-c/releases/download/cpp-0.5.9/msgpack-0.5.9.tar.gz
            tar zxvf msgpack-0.5.9.tar.gz && cd msgpack-0.5.9
            ./configure && make && make install
      - run:
          name: install fcgi
          command: |
            wget https://github.com/FastCGI-Archives/FastCGI.com/raw/master/original_snapshot/fcgi-2.4.1-SNAP-0910052249.tar.gz
            tar zxvf fcgi-2.4.1-SNAP-0910052249.tar.gz && cd fcgi-2.4.1-SNAP-0910052249
            curl https://gist.githubusercontent.com/himkt/fa07b36c9afec57db067c725e8e5e4d8/raw/d5f424a22eba7a2c139324f0b9638b84fe0afafc/fcgi.patch > patch
            patch -u libfcgi/fcgio.cpp < patch
            ./configure && make && make install
      - run:
          name: install mysql
          command: |
            apt update -y
            apt install libmysqlclient-dev libmysqlclient18 mysql-common
      - run:
          name: install postgresql
          command: |
            apt update -y
            apt install -y postgresql postgresql-server-dev-all
      - run:
          name: configure and test pficommon with all extensions except to imagemagick
          command: |
            CPPFLAGS="-I/usr/include/postgresql" ./waf configure --disable-fcgi
            ./waf --check
      - run:
          name: build pficommon
          command: |
            ./waf build
            ./waf install
  gcc5_c++11_full:
    docker:
      - image: gcc:5
    steps:
      - checkout
      - run:
          name: install msgpack
          command: |
            wget https://github.com/msgpack/msgpack-c/releases/download/cpp-0.5.9/msgpack-0.5.9.tar.gz
            tar zxvf msgpack-0.5.9.tar.gz && cd msgpack-0.5.9
            ./configure && make && make install
      - run:
          name: install fcgi
          command: |
            wget https://github.com/FastCGI-Archives/FastCGI.com/raw/master/original_snapshot/fcgi-2.4.1-SNAP-0910052249.tar.gz
            tar zxvf fcgi-2.4.1-SNAP-0910052249.tar.gz && cd fcgi-2.4.1-SNAP-0910052249
            curl https://gist.githubusercontent.com/himkt/fa07b36c9afec57db067c725e8e5e4d8/raw/d5f424a22eba7a2c139324f0b9638b84fe0afafc/fcgi.patch > patch
            patch -u libfcgi/fcgio.cpp < patch
            ./configure && make && make install
      - run:
          name: install mysql
          command: |
            apt update -y
            apt install libmysqlclient-dev libmysqlclient18 mysql-common
      - run:
          name: install postgresql
          command: |
            apt update -y
            apt install -y postgresql postgresql-server-dev-all
      - run:
          name: configure and test pficommon with all extensions except to imagemagick
          command: |
            CPPFLAGS="-std=c++11 -I/usr/include/postgresql -Wno-deprecated-declarations" ./waf configure --disable-fcgi
            ./waf --check
      - run:
          name: build pficommon
          command: |
            ./waf build
            ./waf install

workflows:
  version: 2
  build_and_test:
    jobs:
      - gcc5_python27
      - gcc5_python34
      - gcc5_c++11_python34
      - gcc5_full
      - gcc5_c++11_full
{'fraction_non_alphanumeric': 0.09722525671837448, 'fraction_numerical': 0.05462093074065982, 'mean_word_length': 1.4803576266594418, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1314760', 'n_tokens_mistral': 3182, 'n_tokens_neox': 2940, 'n_words': 633}