language: node_js node_js: - "8" services: - mysql before_install: - mysql -u root -p travis -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"