forked from mendersoftware/mender-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (19 loc) · 1.04 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
sudo: required
services:
- docker
language: python
python:
- "3.6"
before_script:
- sudo apt-get -q update && sudo apt-get install pwgen
script:
- ./test_autoversion.py
- ./autoversion.py --check
- env TEST_OPEN_SOURCE=1 ./test_docs.py 07.Administration/02.Production-installation/docs.md
- if [ -n "$REGISTRY_MENDER_IO_PASSWORD" ]; then docker login -u ntadm_menderci -p "$REGISTRY_MENDER_IO_PASSWORD" registry.mender.io; fi
- if [ -n "$REGISTRY_MENDER_IO_PASSWORD" ]; then env TEST_ENTERPRISE=1 ./test_docs.py 07.Administration/02.Production-installation/docs.md; fi
- if [ -n "$REGISTRY_MENDER_IO_PASSWORD" ]; then env TEST_ENTERPRISE=1 ./test_docs.py 07.Administration/02.Production-installation/01.Upgrading-from-OS-to-Enterprise/docs.md; fi
after_success:
# on merge, first deploy to staging, wait 5 minutes, and deploy to production:
# note that worse possible outcome here is incorrectly formatted markdown appearing
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./redeploy.sh master && sleep 300 && ./redeploy.sh production; fi