diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-03-10 14:37:59 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-03-10 15:49:35 +0900 |
commit | 167e12e2f4a4417a0d70d1f30ec5e0f2ff8f76fb (patch) | |
tree | ef17e624df80d8f6a0edce93c84130b092149ba0 /.gitlab-ci.yml | |
parent | 631770caa760e2473b89398192f7d09662e1f816 (diff) | |
download | buildstream-167e12e2f4a4417a0d70d1f30ec5e0f2ff8f76fb.tar.gz |
Automatically generate documentation on master merges
Whenever merges are made to master, documentation is
built and publised to:
https://buildstream.gitlab.io/buildstream/
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6eb17b49c..765437273 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,35 @@ +# Install some requirements for BuildStream before_script: - - echo "deb http://ftp.uk.debian.org/debian/ testing main" >> /etc/apt/sources.list - - apt-get update --fix-missing -qq - - apt-get install -y -qq bubblewrap - - apt-get install -y -qq python3.5 - - apt-get install -y -qq python3-pip - - apt-get install --force-yes -qq ostree gir1.2-ostree-1.0 python3-dev python3-gi +- echo "deb http://ftp.uk.debian.org/debian/ testing main" >> /etc/apt/sources.list +- apt-get update --fix-missing -qq +- apt-get install -y -qq bubblewrap +- apt-get install -y -qq python3.5 +- apt-get install -y -qq python3-pip +- apt-get install --force-yes -qq ostree gir1.2-ostree-1.0 python3-dev python3-gi - # Debian version is behind/not compatible with latest sphinx - - apt-get remove python-requests - - pip3 install --upgrade pip - - pip3 install --upgrade requests +# Debian version is behind/not compatible with latest sphinx +- apt-get remove python-requests +- pip3 install --upgrade pip +- pip3 install --upgrade requests +# Run premerge commits +# tests: - script: - - python3 setup.py test + script: + - python3 setup.py test - -doc-build: - script: - - pip3 install sphinx - - cd doc - - make
\ No newline at end of file +# Automatically build documentation, only for merges which land +# on master branch. +pages: + script: + - pip3 install sphinx + - pip3 install --user -e . + - make -C doc + - mv doc/build/html public + artifacts: + paths: + - public/ + only: + - master |