-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
57 lines (48 loc) · 1.25 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
#sudo: false
sudo: required
dist: trusty
language: python
# addons:
# apt:
# packages:
# - oracle-java8-installer
# hosts:
# - localhost
branches:
only:
- master
# test the server on multiple JDKs
jdk:
- oraclejdk8
python:
- "2.7"
- "3.6"
before_install:
# show java version
- java -version
- sudo apt-get -qq update && sudo apt-get -qq install oracle-java8-installer > /dev/null
# get jdk_switcher
- wget https://raw.githubusercontent.com/michaelklishin/jdk_switcher/master/jdk_switcher.sh
- source jdk_switcher.sh
# set to Java 8
- jdk_switcher use oraclejdk8
- jdk_switcher home oraclejdk8
# update setuptools
- pip install -U pip setuptools
- pip install coveralls > /dev/null
# show java version
- java -version
# start server as an experiment
#- wget http://www.cs.arizona.edu/~hahnpowell/processors-server/current/processors-server.jar
#- export PROCESSORS_SERVER="$(pwd)/processors-server.jar"
#- java -Xmx3G -cp processors-server.jar NLPServer 8886
# command to install dependencies
install:
#- pip install .
- pip install .[test]
# - pip install git+https://github.com/myedibleenso/py-processors.git
# command to run tests
script:
- green -vv --run-coverage
after_success:
- coveralls