forked from Minkov/judge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (92 loc) · 2.98 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
sudo: required
dist: trusty
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
addons:
apt:
sources:
- sourceline: 'ppa:swi-prolog/stable'
- sourceline: 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x51716619E084DAB9'
- sourceline: 'deb [arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main'
key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
packages:
- ghc
- gnat
- php5-cli
- fp-compiler
- coffeescript
- binutils-multiarch
- libc6-dev-i386
- nasm
- open-cobol
- lua5.2
- gfortran
- chicken-bin
- tcl
- swi-prolog
- r-base
- dart/stable
- scala
cache:
directories:
- $HOME/.cargo
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_install:
# Install Swift
- >
mkdir swift &&
curl https://swift.org/builds/swift-2.2.1-release/ubuntu1404/swift-2.2.1-RELEASE/swift-2.2.1-RELEASE-ubuntu14.04.tar.gz |
tar xz -C swift --strip-components=1
- export PATH=${PWD}/swift/usr/bin:"${PATH}"
# Install PyPy
- >
mkdir pypy2 &&
curl -L https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.8-1-linux_x86_64-portable.tar.bz2 |
tar xj -C pypy2 --strip-components=1 &&
./pypy2/bin/pypy -mcompileall
- >
mkdir pypy3 &&
curl -L https://bitbucket.org/squeaky/portable-pypy/downloads/pypy3.5-5.8-1-beta-linux_x86_64-portable.tar.bz2 |
tar xj -C pypy3 --strip-components=1 &&
./pypy3/bin/pypy -mcompileall
# Install Rust
- curl -sSf https://static.rust-lang.org/rustup.sh | sudo sh
# Install latest Scala
- wget http://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.deb
- sudo dpkg -i scala-2.11.8.deb
# Install D
- wget http://downloads.dlang.org/releases/2.x/2.071.1/dmd_2.071.1-0_amd64.deb
- sudo dpkg -i dmd_2.071.1-0_amd64.deb
# Install Kotlin
# - >
# wget -O kotlinc.zip https://github.com/JetBrains/kotlin/releases/download/v1.1.60/kotlin-compiler-1.1.60.zip &&
# unzip kotlinc.zip &&
# export PATH=${PWD}/kotlinc/bin:"${PATH}"
# Install Groovy
- >
wget -O groovy.zip https://bintray.com/artifact/download/groovy/maven/apache-groovy-binary-2.4.12.zip &&
unzip groovy.zip &&
export PATH=${PWD}/groovy-2.4.12/bin:"${PATH}"
install:
- pip install codecov
- pip install Cython --install-option="--no-cython-compile"
- pip install -e '.[test]'
- >
mkdir testsuite &&
curl https://codeload.github.com/DMOJ/judge-testsuite/legacy.tar.gz/master |
tar xz -C testsuite --strip-components=1
script:
- coverage run --source=dmoj -m unittest discover dmoj/tests/
- coverage run --append --source=dmoj .travis.test.py
after_script:
- codecov
notifications:
slack:
secure: "cJMFsXwvAZxSR/p8WFYUAtJmPxnq+MZKhXQgaHZp7D0tveh6v0/O/GDfO+3B3Ep7/SBNiAj/wfH/ivDVjiSWVN/2DYSiHtzMZ9Jkq2CQzMzX5u3l7J04bO617K8+eRGOFQcYj+GPRntF4GebSgfMuhXwba2N/KjAA9QMKOTlJpU="