language: node_js node_js: - "8" services: - mysql install: - sudo apt-get purge -y mysql-common mysql-server mysql-client before_install: - mysql -u root -ptravis -e 'create database test_frappejs' - echo "USE mysql;\nCREATE USER 'test_frappejs'@'localhost' IDENTIFIED BY 'test_frappejs';\nFLUSH PRIVILEGES;\n" | mysql -u root -ptravis - echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappejs\`.* TO 'test_frappejs'@'localhost';\n" | mysql -u root -ptravis - "git clone https://github.com/frappe/frappejs && cd frappejs" - "npm install -g yarn" - "yarn" script: - "yarn link && yarn link frappejs" - "yarn run test"