-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
60 lines (48 loc) · 1.17 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
language: python
python:
- 3.6
cache:
pip: true
directories:
- .venv
- node_modules
env:
global:
- RANDOM_SEED=0
before_install:
- pip install pipenv
- make doctor
install:
- make install
script:
- make check
- make test
- make run
after_success: >
pip install coveralls scrutinizer-ocular
coveralls
ocular
echo $TRAVIS_BRANCH; echo $TRAVIS_PULL_REQUEST;
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
# Copy the generated files
cp *.csv pages/
cp *.txt pages/
cp *.osm_json pages/
cp *.geojson pages/
# Configure Git with Travis CI information
git config --global user.email "travis@travis-ci.org" ;
git config --global user.name "travis-ci" ;
# Delete the current repository
rm -rf .git ;
# Rebuild the repository from the generated files and push to GitHub pages
cd pages ;
touch .nojekyll ;
git init ;
git add . ;
git commit -m "Deploy Travis CI build $TRAVIS_BUILD_NUMBER to GitHub pages" ;
git push -f https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG} master:gh-pages ;
fi
notifications:
email:
on_success: never
on_failure: change