-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
35 lines (34 loc) · 1.02 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
dist: xenial
language: node_js
node_js:
- 8
jobs:
include:
- stage: test
services:
- mysql
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('123') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -p123
- sudo service mysql restart
before_script:
- npm run lint
- npm run pre-test
- 'curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter'
- 'chmod +x ./cc-test-reporter'
- './cc-test-reporter before-build'
after_script:
- './cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT'
- stage: release
deploy:
provider: script
skip_cleanup: true
script:
- npm run semantic-release