-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (28 loc) · 872 Bytes
/
.travis.yml
File metadata and controls
31 lines (28 loc) · 872 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
language: node_js
node_js:
- lts/*
services:
- mysql
jobs:
include:
- stage: 'Test the server'
before_install: cd backend
before_script:
- wget https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb
- sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb
- sudo apt-get update -q
- sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
- sudo systemctl restart mysql
- sudo mysql_upgrade
- mysql --version
- mysql -u root -e 'CREATE DATABASE IF NOT EXISTS test;'
- mysql -u root test < database.sql
- ssh-keygen -f rsa_secret -N abcde -q
script:
- npm run lint
- npm run test
- stage: 'Test frontend code'
before_install: cd frontend
script:
- npm run lint
- npm run test