mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 10:18:00 +01:00
a188a3a8ca
- Added `-q` to the zip command to create the archive since Travis was having trouble handling its very long output (thus making the build fail). - Moved the actual building of the index and the archive from deploy.sh to a new build.sh script. - Added a `script` step in .travis.yml to run build.sh after npm test. - Specified a clone depth of 1 in .travis.yml to make things faster since we don't need to do any git operation during the build.
23 lines
322 B
YAML
23 lines
322 B
YAML
sudo: false
|
|
language: node_js
|
|
|
|
node_js: stable
|
|
cache: false
|
|
|
|
git:
|
|
depth: 1
|
|
|
|
script:
|
|
- npm test
|
|
- bash scripts/build.sh
|
|
|
|
after_failure:
|
|
- python scripts/send_to_bot.py < test_result
|
|
|
|
deploy:
|
|
provider: script
|
|
script: bash scripts/deploy.sh
|
|
skip_cleanup: true
|
|
on:
|
|
repo: tldr-pages/tldr
|
|
branch: master
|