forked from hpc-carpentry/tuning_lammps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (56 loc) · 2.45 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
# Travis-CI config for https://github.com/FZJ-JSC/tuning_lammps
# Results at https://travis-ci.org/github/FZJ-JSC/tuning_lammps
dist: xenial
language: python
python: 3.7
branches:
only:
- gh-pages
# Add spellchecking for PRs
jobs:
include:
- stage: "Check for typos and spelling mistakes"
install:
# Use codespell for spell checking
pip install codespell
script:
# Run a non-erroring version to report spelling errors using standard filters
# (weird comment style is because of how travis joins lines)
- echo -e "\n\n\e[32mChecking repo with standard filters (does not return an error)\e[0m\n";
codespell
`# skip these directories and file types`
--skip="assets,bin,css,data,deprecated,fig,files,AUTHORS,CONTRIBUTORS.md,*.csv,.mailmap"
`# keep reporting to what is necessary`
--quiet-level=2
`# allow for some false positives`
--ignore-words-list="rouge,keyserver,coul,acn,hist"
`# do not return an error code`
||true
# Run an error reporting version (which may be customized for the repo):
# - Filter ipynb since any included images give a lot of false positives (other errors will be reported with the
# non-erroring version above)
# - For this repo we also check the bin directory for spelling errors
# - Add comments on additional filters here (could also include regex with `--regex`)
- echo -e "\n\n\n\e[31mRunning codespell with custom filters (returns errorcode)\e[0m\n";
echo -e "Files checked:\n\t$(git diff --name-only --diff-filter=AM $TRAVIS_BRANCH...HEAD|tr '\n' ' ')\n\n";
codespell
`# skip these directories and file types`
--skip="assets,fig,*.svg,AUTHORS,.mailmap"
`# keep reporting to what is necessary`
--quiet-level=2
`# allow for some false positives`
--ignore-words-list="rouge,keyserver,coul,acn,hist"
`# only check files changed`
$(git diff --name-only --diff-filter=AM $TRAVIS_BRANCH...HEAD|tr '\n' ' ')
- stage: "Build the site"
before_install:
- sudo apt-get update -y
- rvm default
- gem install bundler jekyll json kramdown
- bundle config build.nokogiri --use-system-libraries
- bundle install
install:
- pip install pyyaml
script:
- make lesson-check-all
- make --always-make site