2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00
books/.travis.yml
2018-02-08 21:18:58 +05:30

20 lines
563 B
YAML

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