/
.travis.yml
36 lines (34 loc) · 1016 Bytes
/
.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
language: julia
sudo: false
os:
- linux
- osx
julia:
- 1.0
- nightly
script:
- julia --check-bounds=yes --inline=no -e 'using Pkg; Pkg.activate("."); Pkg.build("Chemfiles"); Pkg.test("Chemfiles"; coverage=true)'
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${TRAVIS_JULIA_VERSION}" == "1.0" ]]; then
julia -e 'cd(Pkg.dir("Chemfiles")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
./scripts/build-docs.sh
cd ${TRAVIS_BUILD_DIR}
fi
- cd ${TRAVIS_BUILD_DIR}
- ./scripts/check_used_functions.py
- ./scripts/check_docs.py
deploy:
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: gh-pages
on:
branch: master
condition: "${TRAVIS_OS_NAME} == linux && ${TRAVIS_JULIA_VERSION} == 1.0"
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: gh-pages
on:
tags: true
condition: "${TRAVIS_OS_NAME} == linux && ${TRAVIS_JULIA_VERSION} == 1.0"