Skip to content

Instantly share code, notes, and snippets.

@dolph
Created June 21, 2018 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolph/7e52aec97147c0ba7d70c2acc6f17366 to your computer and use it in GitHub Desktop.
Save dolph/7e52aec97147c0ba7d70c2acc6f17366 to your computer and use it in GitHub Desktop.
ML4K Travis configuration draft
language: node_js
node_js:
- "8.10"
services:
- mysql
before_install:
- npm install -g typescript
- npm install -g tslint
- npm install -g tslint-eslint-rules
- npm install -g mocha
- mysql -e 'CREATE DATABASE IF NOT EXISTS mlforkidsdb;'
- mysql < sql/tables.sql
env:
- MYSQLUSER=root
- MYSQLPASSWORD=
- MYSQLDATABASE=mlforkidsdb
script:
- tslint -c tslint.json 'src/**/*.ts'
- npm install
- npm test
- tsc -p tsconfig.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment