-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy path.travis.yml
More file actions
49 lines (46 loc) · 1.53 KB
/
.travis.yml
File metadata and controls
49 lines (46 loc) · 1.53 KB
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
dist: xenial
sudo: required
# TODO: blend Python and R together.
matrix:
include:
- language: python
python: 3.6
before_install:
- pip freeze
- pip uninstall numpy -y && pip install numpy==1.15.4 # FIXME: Temporary fix as f2py is buggy on numpy 1.16.0
- sudo apt-get install gfortran
- pip install Sphinx==2.4.* sphinx_bootstrap_theme sphinx-autodoc-typehints m2r cffi
- sudo apt install snapd
- sudo snap install dotnet-sdk --classic
install:
- sphinx-build docs/sphinx build/html
- touch build/html/.nojekyll # https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/
- cd tests/js && npm install
- cd $TRAVIS_BUILD_DIR
script:
# See https://stackoverflow.com/a/34140498 for why "python -m" is needed.
- python3 -m pytest -v -s
- cd tests/js && npm test
- cd $TRAVIS_BUILD_DIR
- cd src/c_sharp && dotnet-sdk.dotnet test
- cd $TRAVIS_BUILD_DIR
- language: r
r: release
before_install:
- Rscript -e 'install.packages("devtools", dependencies = TRUE)'
- cd $TRAVIS_BUILD_DIR/src/r
- touch NAMESPACE
- Rscript tools/deploy.R
script:
- R CMD build .
- R CMD check --as-cran psychrolib*tar.gz
after_success:
- Rscript -e 'covr::codecov()'
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: build/html
on:
branch: master
condition: $TRAVIS_PYTHON_VERSION == 3.6