forked from NoteSelf/NoteSelf.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 2.14 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
language: node_js
cache:
directories:
- ~/.npm
node_js:
- "8"
before_install:
- "npm i -g [email protected]"
- "git clone https://github.com/danielo515/tw5-pouchdb.git pouchdb" # note that I'm naming the output folders for easier reference later
- "git clone https://github.com/danielo515/tiddlypouch.git tpouch"
- "ls -l"
before_script:
- export TIDDLYWIKI_PLUGIN_PATH="$(pwd)/plugins:$(pwd)/pouchdb/src/plugins:$(pwd)/tpouch/dist" # Plugins paths with all deps globally available
- "(cd tpouch && npm i && gulp travis --production)"
script:
# ===== Builds NoteSelf core plugins
- npm run build-plugin
# ===== Build the editions
- tiddlywiki ./wiki --verbose --output ./dist --build index --build favicon --build library
- tiddlywiki ./editions/online --verbose --build index
- tiddlywiki ./editions/markdown --verbose --build index
- tiddlywiki ./editions/developer --verbose --build index # build the developer edition
# ===== Non Minified version =====
- "(cd ./tpouch && gulp travis)" # Build non minified version of TPouch code ( no --production flag )
- tiddlywiki ./editions/online --verbose --build dev # This is the same as the online one, but to a different dist path
# ===== Build edge version with the latest tiddlywiki and experimental plugins =====
- "npm i tiddlywiki@latest && npx tiddlywiki --version"
- "npx tiddlywiki ./editions/edge --verbose --build index" # build the edge edition (includes not well tested stuff)
# === Measures file sizes and adds that data to the pull request ===
- python node_modules/travis-weigh-in/weigh_in.py dist/developer/index.html
- python node_modules/travis-weigh-in/weigh_in.py dist/markdown/index.html
- python node_modules/travis-weigh-in/weigh_in.py dist/online/index.html
- python node_modules/travis-weigh-in/weigh_in.py dist/edge/index.html
- python node_modules/travis-weigh-in/weigh_in.py dist/dev/index.html
- python node_modules/travis-weigh-in/weigh_in.py dist/index.html
after_script:
- "ls -lR dist"
deploy:
provider: pages
skip_cleanup: true
local_dir: ./dist
target_branch: master
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: develop