-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (42 loc) · 1 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
sudo: false
language: python
python: pypy3.5
cache:
- npm
- directories:
- $HOME/results
install:
- mkdir -p $HOME/results
- nvm install v10
- node --version
- npm --version
- pip install -U pip
- pip install tox-travis
- pip install .
- pip freeze
- npm prune
- npm install
script:
- for f in $(git ls-tree -r -t --full-name --name-only HEAD) ; do
touch -d $(git log --pretty=format:%cI -1 HEAD -- "$f") "$f";
done
- ls -l $HOME/results
- ls -l data/*.yml
- npm run lint
- tox | cat
- python -u process.py --multi -v -v --limit='1200,stopped.txt' --arg=time_delta=0.02 --out=$HOME/results
- python util/combine.py --results=$HOME/results --out=client/static
- npm run build
- if [ ! -f stopped.txt ]; then
export COMPLETE="true";
fi
# https://docs.travis-ci.com/user/deployment/pages/
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: dist
on:
condition: $COMPLETE = "true"
branch: master