File: .travis.yml

package info (click to toggle)
cclib 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,372 kB
  • sloc: python: 16,110; sh: 112; makefile: 86
file content (44 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download
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
sudo: false
dist: trusty
language: python
python:
  - 2.7
  - 3.4
  - 3.6
addons:
  apt:
    packages:
      - libopenbabel-dev
      - swig
cache:
  pip: true

before_install:
  - pip install -r requirements.txt

install:
  - pip install .

before_script:
  - |
    export DOCS_BRANCH_NAME=master
    export DOCS_REPO_NAME=cclib.github.io
    export DOCS_REPO_OWNER=cclib
    export DOCS_ROOT_DIR="${TRAVIS_BUILD_DIR}"/doc/sphinx
    export DOCS_BUILD_DIR="${DOCS_ROOT_DIR}"/_build/html
    export THEME_DIR="${DOCS_ROOT_DIR}"/_themes
  - install -dm755 "${THEME_DIR}"

script:
  - bash travis/run_pytest.bash
  - bash travis/build_docs.bash
  - env | sort

after_success:
  - |
    if [[ "${TRAVIS_BRANCH}" == master && "${TRAVIS_PULL_REQUEST}" == false && $TRAVIS_PYTHON_VERSION == 3.6 ]];
    then
        # Commits to master that are not pull requests, that is, only actual
        # addition of code to master, should deploy the documentation.
        bash ${TRAVIS_BUILD_DIR}/travis/deploy_docs_travis.bash
    fi