-
Notifications
You must be signed in to change notification settings - Fork 47
/
.travis.yml
executable file
·77 lines (60 loc) · 1.56 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This will run on Travis' 'new' container-based infrastructure
#sudo: false
# Blacklist
#branches:
# only:
# - master
# Environment variables
env:
global:
- GH_REPO_REF: github.com/Quantum-Dynamics-Hub/libra-code.git
language: python
matrix:
include:
- os: linux
language: generic
env: PYTHON_VER=3.7
# Install dependencies
addons:
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
# Install the Python environment
- source devtools/travis-ci/before_install.sh
- python -V
install:
# Create test environment for package
- python devtools/scripts/create_conda_env.py -n=py37 -p=$PYTHON_VER devtools/conda-envs/py37_env.yaml
# Activate the test environment
- conda activate py37
# Build and install package
#- python setup.py develop --no-deps
- pwd
- mkdir _build3
- cd _build3
- cmake -DBOOST_ROOT=$HOME/miniconda3/envs/py37 ../
- make -j`nproc`
#- make copy-libra-py
- export PYTHONPATH=$(pwd)/src:$PYTHONPATH
- export LD_LIBRARY_PATH=$(pwd)/src:$LD_LIBRARY_PATH
- cd ../docs/SphinxDoc
- make html
# Deploy using travis builtin GitHub Pages support
deploy:
provider: pages
skip_cleanup: true
local_dir: $TRAVIS_BUILD_DIR/docs/SphinxDoc/build/html
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch:
- master
- devel