version: 2
jobs:
  build:
    machine:
      image: ubuntu-1604:201903-01
    working_directory: ~/project
    steps:
      - checkout
      - run:
          name: Setup nvim ppa
          command: sudo add-apt-repository --yes ppa:neovim-ppa/unstable
      - run:
          name: APT update
          command: sudo apt-get update
      - run:
          name: Install dependencies
          command: |
            sudo apt-get install -y cmake libqt5svg5 libqt5svg5-dev neovim python3-dev python3-jinja2 python3-msgpack python3-pip qt5-default
            pip install --user cpp-coveralls PyYAML
      - run:
          name: build
          command: |
            pyenv global system
            mkdir build
            cd build
            cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_GCOV=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
            cmake --build . --target bindings -- VERBOSE=1
            cmake --build . -- VERBOSE=1
      - run:
          name: test
          command: |
            cd build
            ctest -VV
      - run:
          name: Upload coverage report
          # trick cpp-coveralls into doing the right thing
          # https://github.com/eddyxu/cpp-coveralls/issues/143
          command: TRAVIS_JOB_ID="#${CIRCLE_BUILD_NUM}" ~/.local/bin/cpp-coveralls -y contrib/coveralls-circle.yml -E '.*/build/.*' -E '.*/third-party/.*' -E '.*/test/.*' -E '.*/bindings/.*'


version: 2
jobs:
  build:
    machine:
      image: ubuntu-2004:202008-01
    working_directory: ~/project
    steps:
      - checkout
      - run:
          name: Setup nvim ppa
          command: sudo add-apt-repository --yes ppa:neovim-ppa/unstable
      - run:
          name: APT update
          command: sudo apt-get update
      - run:
          name: Install dependencies
          command: |
            sudo apt-get install -y cmake libqt5svg5 libqt5svg5-dev neovim python3-dev python3-jinja2 python3-msgpack python3-pip qt5-default
            pip install --user cpp-coveralls PyYAML
      - run:
          name: build
          command: |
            pyenv global system
            mkdir build
            cd build
            cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_GCOV=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
            cmake --build . --target bindings -- VERBOSE=1
            cmake --build . -- VERBOSE=1
      - run:
          name: test
          command: |
            cd build
            ctest -VV
      - run:
          name: Upload coverage report
          # trick cpp-coveralls into doing the right thing
          # https://github.com/eddyxu/cpp-coveralls/issues/143
          command: TRAVIS_JOB_ID="#${CIRCLE_BUILD_NUM}" ~/.local/bin/cpp-coveralls -y contrib/coveralls-circle.yml -E '.*/build/.*' -E '.*/third-party/.*' -E '.*/test/.*' -E '.*/bindings/.*'


Update CircleCI Image Ubuntu 20.04
Update CircleCI Image Ubuntu 20.04
