-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1 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
language: node_js
node_js:
- '9'
- '8'
cache:
directories:
- ~/.npm
sudo: required
services:
- mysql
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
notifications:
slack: parpe:ypxSy7CvUXYAShDK7C3supzV
email: false
before_install:
- sudo mysql_upgrade
- sudo service mysql restart
- npm install -g istanbul babel-cli
before_script:
- echo DB_HOST = 127.0.0.1 >> .env
- echo DB_USER = root >> .env
- echo DB_HOST = >> .env
- echo DB_NAME = stackerjs >> .env
- mysql -e 'CREATE SCHEMA stackerjs;'
- 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
- rm -rf ./cc-test-reporter
after_success:
- npm run build
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/