-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
46 lines (37 loc) · 872 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
language: node_js
node_js:
- 'node'
before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
install:
- "npm install"
# Init GUI
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- "npm run lint:lib"
- "npm run test:lib"
- "npm run build:lib"
cache:
directories:
- "./node_modules"
before_deploy:
- "npm run build:example"
- "cd ./dist/ng-drag-drop-list/"
deploy:
- provider: script
script:
- "cd ../../ && npm run deploy:gh-pages"
skip_cleanup: true
on:
branch: master
- provider: npm
email: $EMAIL_ADDRESS
api_key: $NPM_TOKEN
skip_cleanup: true
on:
tags: true
notifications:
email: false