-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
60 lines (60 loc) · 1.6 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
sudo: false
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/go/src"
_python_install: &_python_install
- pip install --upgrade pip
- pip install --upgrade scrapy codecov
_python_test: &_python_test
- SCRIPT="coverage run --concurrency=multiprocessing -m unittest discover && coverage combine"
_go_before_install: &_go_before_install
- go get -v golang.org/x/lint/golint
_go_install: &_go_install
- go get ./...
_go_test: &_go_test
- SCRIPT="go vet ./... &&
golint -set_exit_status ./... &&
go test -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count github.com/vmarkovtsev/ggmbox"
matrix:
include:
- language: go
go: 1.9
before_install: *_go_before_install
install: *_go_install
env: *_go_test
- language: go
go: 1.10.4
before_install: *_go_before_install
install: *_go_install
env: *_go_test
- language: go
go: 1.11
before_install: *_go_before_install
install: *_go_install
env: *_go_test
after_success:
- bash <(curl -s https://codecov.io/bash)
- language: python
python: 3.4
env: *_python_test
install: *_python_install
- language: python
python: 3.5
env: *_python_test
install: *_python_install
- language: python
python: 3.6
env: SCRIPT="pycodestyle --max-line-length=99 ."
install: pip install pycodestyle
- language: python
python: 3.6
env: *_python_test
install: *_python_install
after_success:
- codecov
fast_finish: true
script:
- (eval "$SCRIPT")
notifications:
email: false