tldr/.travis.yml
Marco Bonelli a188a3a8ca Travis: separate building from deployment.
- 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.
2019-07-11 17:01:05 +05:30

24 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