-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
34 lines (34 loc) · 1.99 KB
/
.travis.yml
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
language: node_js
node_js:
- 16.17.0
services:
- mysql
env:
global:
- secure: VIz5T1MKkySLh4xiMYeeXMghFZkeuHBlKO9tYQ4hwDLyV4xP5kw/wSws3GPQi4R1wHCCg+zsPNbtTOkN9pZQAquxXczJw2lTylIAKTPFEjnXK5Yw272fpYEoqRGPesv0FC760V073yAg33CwJLHksz/XZrM8hB8Cet8+DkL+lHrRRLZLHQO6HaCWV83pHF2iFRWweVBzyBhZSQZXchT/ST4Z7r64ds2iEs4zVqU+3cZ5gy+JjFAdysyelNaxM5PTMO0GucTVMuiPDRhKQqqUI0tKgiSt4tV8RO3Gt6wXSklyI1aOVYbbZ+6cIU5JbmEke4T18iHuRDta2VY0dC9MBYYlzaZ3Bf8VOeQVOseJhxDpufLbkoXW+0D0UosctfcZvCSob2tN9EtAAFMDi3r4S1oX6FK9pQEYsFnEqOoE0nSETkLeZ18tW/edQgIs5+xS9XJf/6+BAgeaEMuOAZ/agkOY1CZdRsUlAVZfM3F2Sn0ZTwPqpMS4rShkLXCFSPf9lLYlRITvBigJ+XN6lSb6EQiG3M+2SYYZHa2V+QdxnVgnUVN4004LUQtUBEChHO4mB6gcRK3SuSYNSntX02c9YYFMqnYyTdhzG9koE3uDm+AxAaMp95q/fy3ABtRyAA/vYorTKLAzYbiNFSIeNn39uiP1h+BvbKjTo0VKZkjX9sM=
jobs:
include:
- stage: server
env:
- NODE_ENV=test
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS nextMeal_test default character set
utf8mb4 collate utf8mb4_unicode_ci;'
- npm install sequelize-cli -g
before_script:
- cd server
- sequelize db:migrate
script: npm test
- stage: client
script:
- cd ./client
- npm install
- npm run build
- cd ../
after_success:
- git add .
- git commit -m "Travis CI built client for deplotment"
deploy:
provider: heroku
api_key:
secure: dib5GOKsjsf9n+PZijGofgWs0G4UGxO/gu/2VHbNNaDJdmopQItKlSS8iMfFVFpO/Kf5DKCDPTaBM8XIT8A3WBFq4RD2xje1ZMnuwA4a7XdJiimyujbHvFOMWYjnTAPhLFoReXHrIHzS9NimBxYdXXLtvhEjVwWFIpAIjGJ3b83MAIrZvW45qU6/R8UOuncJCcHqZfHnVsOTNNAXWjSnp22oZwHfGomvcFTC/XH3XjV1sDYo5U4oG8dUMntPpZtY69E4kvKnk2+JaVyc+NfH8QOxZsloZNBoKo7wEu3pJbB9IXp0xp54XH7bhs+wodMO3keoK75Ql8+PwaJ4CQBb3sGylNkhJzD30aIsBIFlFdMkVs7Y7du+bnybEUObCxeSNQ6v5Zw8vpojMmubDbAeJEHf0LyS8+Xf3GrfvidqjK+7hpLYXCgyDCdqQSOtv84JIlTrC+Pvb1z7GD/nubxY03qvhu20QY8Um7dqcIO8bIaHBi6erbnY2qviDhymMiqJnkN1JbP/ffEpIw6LN11iVRO86Wu4N/pevWzgcA/SlKIju6KmlIC6fGinsBaEDXXKMnbnnbM1Qqxqstvp43YJj6e93vBoabWBN1gHaj864kQu1YqYgG9Cd/QhPA4onWURGYM0cRqa4Zv8yC9kvIZ3ULDcntsz4m9JfvWRbW+mThc=