forked from microsoft/vscode-java-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (43 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: java
matrix:
include:
- os: linux
dist: trusty
jdk: openjdk11
env:
- JDK_HOME=~/openjdk11 # force launching JLS using JDK11
# Disable osx build temporary, see: https://github.com/microsoft/vscode-java-test/issues/1064
# - os: osx
# osx_image: xcode10.1
# jdk: oraclejdk11
branches:
only:
- master
before_install:
- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9"
export DISPLAY=':99.0'
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
fi
- nvm install 12
- nvm use 12
install:
- npm install
script:
- npm run lint
- npm run build-plugin
- npm test
after_failure:
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
find $HOME/Library/Application\ Support/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;
fi;
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
find $HOME/.config/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;
fi;
addons:
apt:
packages:
- libsecret-1-dev