Skip to content

Instantly share code, notes, and snippets.

@a14n
Last active October 6, 2016 11:48
Show Gist options
  • Select an option

  • Save a14n/83f200b50b39105324c55de97931fd55 to your computer and use it in GitHub Desktop.

Select an option

Save a14n/83f200b50b39105324c55de97931fd55 to your computer and use it in GitHub Desktop.
.travis.yml to run test in chrome
language: dart
sudo: required
dist: trusty
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
script:
- "t=0; until (xdpyinfo -display :99 &> /dev/null || test $t -gt 10); do sleep 1; let t=$t+1; done"
- "pub run test -p vm -p chrome -p firefox"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment