forked from JuliaEnergy/PowerDynOperationPoint.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (42 loc) · 1.41 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
## Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
# - osx
julia:
- 1.0
- 1.1
notifications:
email: false
git:
depth: 99999999
env:
global:
# - JULIA_COVERAGE_VERSION='1.1'
- PYTHON=conda
- RED='\033[0;31m'
- GREEN='\033[0;32m'
- NOCOLOR='\033[0m'
- BOLD=$(tput bold)
script:
- julia --check-bounds=yes --color=yes --inline=no -e "using Pkg; Pkg.test(coverage=true)"
&& julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; res=Codecov.process_folder();
Codecov.submit(res);
covered_lines, total_lines = get_summary(res); println("covered_lines/total_lines = $covered_lines/$total_lines = $(covered_lines/total_lines)");'
- julia -e 'using Pkg; Pkg.add(PackageSpec(name="Documenter", version="0.19"))'
&& julia docs/make.jl
# keep the below for testing reasons
# script: echo "Julia $TRAVIS_JULIA_VERSION"
jobs:
include:
- name: "Changelog Check"
if: type IN (pull_request)
language: minimal
before_install:
before_script:
script:
- git fetch origin master:master
# show all changed files for debugging
- git diff HEAD master --name-only
# check if CHANGELOG.md has been modified
- git diff HEAD master --name-only | grep ^CHANGELOG.md$ || (ret=$? && echo -e "${RED}${BOLD}You didn't provide the details of your change in CHANGELOG.md" && exit $ret)