-
Notifications
You must be signed in to change notification settings - Fork 77
/
.travis.yml
28 lines (28 loc) · 1.14 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
matrix:
include:
- language: go
go: 1.8.x
sudo: required
install:
- sudo apt-get install -y mercurial
- go get -u github.com/golang/lint/golint
- curl https://glide.sh/get | bash
- sudo pip install pre-commit
script:
- rm -f .copyright.hook && wget https://raw.githubusercontent.com/PaddlePaddle/Paddle/develop/.copyright.hook
- bash -x .tools/check_style.sh
- ln -s $GOPATH/src/github.com/PaddlePaddle $GOPATH/src/github.com/paddlepaddle
- mkdir ~/.glide && glide mirror set https://gonum.org/v1/plot https://github.com/gonum/plot
- glide install --strip-vendor && go test $(glide novendor)
- language: python
python: 2.7
sudo: required
env:
- DJANGO_SETTINGS_MODULE="paddlecloud.travis_settings"
before_script:
- mysql -e 'create database paddlecloud;'
- mkdir $HOME/.kube && cp ./k8s/config $HOME/.kube/
- pip install -r python/paddlecloud/requirements.txt
- cd python/paddlecloud && python manage.py makemigrations && python manage.py migrate
script:
- python manage.py test