-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (43 loc) · 891 Bytes
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
os: linux
dist: xenial
language: node_js
node_js: lts/*
services:
- mysql
addons:
ssh_known_hosts: cronpush.tygr.info
# SSH Setup
before_deploy:
- openssl aes-256-cbc
-K $encrypted_db2095f63ba3_key
-iv $encrypted_db2095f63ba3_iv
-in deploy_rsa.enc
-out /tmp/deploy_rsa
-d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
env:
global:
# Test setup
- MYSQL_HOST=127.0.0.1
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASSWORD=
- MYSQL_TEST_DB=cronpush_test
- JWT_SECRET=shhh
before_script:
- mysql -e 'CREATE DATABASE `cronpush_test`;'
jobs:
include:
- stage: test
script: npm run quality:check
- script:
- npm run build
- npm test
deploy:
edge: true
on:
branch: main
provider: script
script: bash scripts/deploy.sh