-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy path.travis.yml
96 lines (83 loc) · 2.86 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
language: node_js
services:
- postgresql
- mysql
sudo: required
addons:
postgresql: '9.4'
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
stages:
- 'Tests'
- 'Additional Tests'
- name: 'Deploy'
if: branch = master AND type = push
jobs:
fail_fast: true
include:
- stage: 'Tests'
node_js: 'stable'
env: DB_TYPE=sqlite
install: yarn install --no-optional --non-interactive
name: 'TypeScript compiles'
script: tsc
- node_js: 'stable'
env: DB_TYPE=sqlite
install: yarn install --no-optional --non-interactive --no-lockfile
name: 'Floating Dependencies'
- node_js: 'stable'
name: 'PostgreSQL'
env: DB_TYPE=pg
- node_js: 'stable'
name: 'MySQL'
env: DB_TYPE=mysql
- stage: 'Additional Tests'
node_js: 'stable'
name: 'Fixed Dependencies'
env: DB_TYPE=sqlite
install: yarn install --no-optional --non-interactive
- node_js: '10'
env: DB_TYPE=mysql
- node_js: '8'
env: DB_TYPE=mysql
- node_js: '10'
env: DB_TYPE=pg
- node_js: '8'
env: DB_TYPE=pg
- node_js: '10'
env: DB_TYPE=sqlite
install: yarn install --no-optional --non-interactive
- node_js: '8'
env: DB_TYPE=sqlite
install: yarn install --no-optional --non-interactive
- stage: 'Deploy'
node_js: stable
script: yarn semantic-release
install: yarn install --non-interactive --no-lockfile
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade
- echo "[mysqld]" > $HOME/.my.cnf
- echo "lower-case-table-names = 1" >> $HOME/.my.cnf
- mysql_config_editor set --login-path=client --host=localhost --user=root
- sudo service mysql restart
before_script:
- ./scripts/ci/setup-db.sh
script: yarn test
# deploy:
# skip_cleanup: true
# provider: heroku
# api_key:
# secure: V2Qerq2HW1rwhJ76O8e5VZ5PRECQBxTT+bEtXikA8mioXkvNUYC5rPDcF46KbQg6rGy3gsTk2iUFkmNRFAiZgnHfub2ViM2OptdJhlGHxzTEDxSe5Ny8HLhFXH0KO9CvJbmRfUGUwXGgaaULX4EFOH2FLGadO184J3AnhPNj10+3FW/KPcthQN4rozRVUBOeI1kmOTifB4eO+XZEdkLRn7g7apzy+FIkZFcUSYaDQcBGUb9l/SYxb2Pd5xMx2SG8lW3SasGD0ZN/XGFo75cyyz42w1u7r4h5/tltn6RpKLzmA9YEi9V6zMTT9LNU/kSh6ylWndE0U2yBMzAJZ5jkwBLpQPlTNz3JWNUZTYNpR/S+rjSBglLN3InTxvKO4ebdz1vzNArk7LzjC3jNBvYl3+kfOSoybS7kAXb/cdXT+EqMqCWWU3F+cuDS1IxUaLdXTci7/BUnmTHQGfdH3Pu/Ha2SPEPSbGwusU+lUYdHxsasvcGtCtn7o9shctZUysNP+SVL7Mp3+reP927wgGt6uGLeRDLd6K7sXxZ11AzMiO+o30hjDCVWKCG/vCSsLB8uGnQJzSqo2ESRbxO0m9Mh5ANrt078mR+/A0UPIUlZd6fTUX3swc6UP+RcUquXs8WQ5icDfMXfn3+r+BUAzsOvJwUDHvsH/rvai7Y3P5doNbg=
# app: damp-oasis-38940
# on:
# repo: mike-works/sql-fundamentals
# branch: solutions-pro
# condition: $SHOULD_DEPLOY
branches:
except:
- /^v\d+\.\d+\.\d+$/