Travis-ci.org come to shut down // how to convert from travis-ci.org to your circleci

travis-ci.org come to shut down in several weeks, But i want to know how to convert this config from travis-ci.org to circleci
I tried to convert many times but not work

os: linux
sudo: required
dist: xenial
language: node_js
node_js: '10'
before_install:
  - sudo apt update
  - sudo apt install build-essential
  - sudo apt install snapd
  - sudo snap install --classic snapcraft
  - sudo snap refresh
  - sudo apt-get install --no-install-recommends -y libopenjp2-tools
  - sudo apt-get install --no-install-recommends -y snapcraft
  - sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib curl gperf bison python-dbusmock openjdk-8-jre
  - sudo dpkg --add-architecture i386
  - wget -nc https://dl.winehq.org/wine-builds/winehq.key
  - sudo apt-key add winehq.key
  - sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
  - sudo apt-get update
  - sudo apt-get install -y aptitude
  - sudo aptitude install -y winehq-stable
  - bash <(curl http://getvcn.codenotary.io -L)
install:
  - npm install --global yarn
  - yarn global add electron-builder
script:
  - electron-builder -wl --publish "always" -c.snap.publish=github
  - electron-builder install-app-deps

What have you got so far for the CircleCI config?