Last active
October 6, 2016 11:48
-
-
Save a14n/83f200b50b39105324c55de97931fd55 to your computer and use it in GitHub Desktop.
.travis.yml to run test in chrome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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