forked from kyuridenamida/atcoder-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (26 loc) · 1.08 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
language: python
python:
- "3.5"
- "3.6"
- "3.7-dev"
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y # for C++14
- sudo wget https://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list # for D-lang, see https://d-apt.sourceforge.io/
- sudo apt-get update --allow-insecure-repositories
- sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring
- sudo apt-get update
- sudo apt-get install rustc g++-4.9 openjdk-8-jdk nim dmd-compiler mono-complete
- sudo ln -f -s /usr/bin/g++-4.9 /usr/bin/g++
install:
- pip install .
- pip install flake8 autopep8
- pip install codecov nose
script:
- flake8 --ignore=E501,W503,W605 --exclude=atcodertools/tools/templates/,tests/resources/test_codegen/ atcodertools tests
- autopep8 -r . --exclude 'default_template.py,test_codegen' --diff | tee check_autopep8
- test ! -s check_autopep8
- atcoder-tools gen arc050 --without-login
- nosetests tests --exe -v --with-coverage --cover-package=atcodertools
- codecov
notifications:
email: false