This repository has been archived by the owner on Feb 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
71 lines (61 loc) · 2.47 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
language: node_js
node_js:
- '6'
- 'stable'
# Deactive fetch submodules by Travis. (e.g. before_script)
git:
submodules: false
env:
global:
- GIT_NAME: Travis CI
- GIT_EMAIL: [email protected]
- GITHUB_REPO: FountainJS/fountain
- secure: 3JCPrv2VfF2GE7O/tfbCsjXhg3vNKO7EsQ63aXf65g3iy1oWZGLchhzYJkJgfbYPp83PEicMF19ByAaa5x8nlxn9z/Ea75cSQzKZgsORcy/sA+6urM0jWwocSN6y7x2bUB5lGYXV1UdsM+UwFSoWB4IF/jNIpmHh31UaRHOGSoH3WiTYW4aR/59QXQqPECohnwy8B+5TMr88fCM7ZodMF6SHEAj+LAHHR3Sp+xRjHzt3S17VrWryvp7XC3rvxTZ2DoBvTNfZcs8mr45BIdKbg/Pa5CsvlnIy3EpZDuMQPePrXdTHpxhRs6/vMmUZnmiwzrgJN7Ne8hvpgNLRl6o3+4UAUGeOYfYgj0/22oQy5U2ojz1/fykBQGXxcKLrTHzptYXkBGyFIuKD2HuU2eSMGSo+PoELmJpg5nbwfGR22BHJOsF1H1/dYNvAhPGfagRvgDZE0xoY0GQPPj5M/Rlqi/WOqX3xnlHxnuAucmNrNFknPf+S5u/aGMOcvq5ivsZ7oDI0S874MdDZQO2z6MakhAa0QChCzM/usoqB38PSHfu/5WHqbY0AHWiNyFphkuejhw/ad3GKhX9YBTt3D5YaxH5bchgQrAyAeDF8MnPV+lbIw+eBoLIcfayic5C3dd3hSFXFZx2Kqs4VXbv52hR0JvgpU82AS4WwU+lah1vwbjw=
# Enable cache for all node_modules
cache:
timeout: 600
directories:
- node_modules
- fountain-generator/node_modules
- generator-fountain-angular1/node_modules
- generator-fountain-angular2/node_modules
- generator-fountain-browsersync/node_modules
- generator-fountain-eslint/node_modules
- generator-fountain-gulp/node_modules
- generator-fountain-inject/node_modules
- generator-fountain-karma/node_modules
- generator-fountain-react/node_modules
- generator-fountain-systemjs/node_modules
- generator-fountain-tslint/node_modules
- generator-fountain-vue/node_modules
- generator-fountain-webapp/node_modules
- generator-fountain-webpack/node_modules
- test/deps
addons:
# Install Firefox
firefox: '46.0'
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_cache:
- npm run unlinkAll
# Prepare build:
# * Backup node_modules in ./temp/ provided by caches Travis
# * Remove all fountain directories
# * Replace protocol for git modules
# * Fetch git modules
# * Restore node_modules
# * Generate all symlink across generators
# * Install global packages needed
before_script:
- node test/cache/backup-node_modules.js
- rm -rf fountain-generator/ generator-fountain-*/
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- node test/cache/restore-node_modules.js
- npm install --global npm@latest
- npm run linkAll
script:
- npm test
after_success:
- node ./scripts/bin/deploy