-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (31 loc) · 934 Bytes
/
.travis.yml
File metadata and controls
40 lines (31 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: node_js
dist: trusty
node_js:
- "node"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a1a629c5886b84b29d1e
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
services:
- mysql
before_install:
# Create databases.
- mysql -u root -e 'CREATE DATABASE codgic;'
- mysql -u root -e 'CREATE DATABASE codgic_test;'
# Create user 'codgic'.
- mysql -u root -e "CREATE USER 'codgic'@'localhost' IDENTIFIED BY 'YOURPASSWORD';"
# Grant privileges on user 'codgic'.
- mysql -u root -e "GRANT ALL ON *.* TO 'codgic'@'localhost';"
before_script:
# Install dependencies.
- yarn install
script:
# Generate config.yml.
- gulp renameConfig
# Compile project.
- yarn run build
# Run tests.
- yarn run test