-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
76 lines (62 loc) · 2.32 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
#
# Copyright (c) André Bargull
# Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
#
# <https://github.com/anba/es6draft>
#
language: java
sudo: false
env:
global:
- TEST262_PATH='~/test262'
matrix:
include:
# Run the default profile with Java 8-9 (latest through installer)
# Java 10 not yet supported outside of travisci-staging.
- addons: {apt: {packages: oracle-java8-installer}}
jdk: oraclejdk8
env: PROFILE='skip-external' JAVA_VERSION=8
- addons: {apt: {packages: oracle-java9-installer}}
jdk: oraclejdk9
env: PROFILE='skip-external' JAVA_VERSION=9
# Run test262 profile with Java 8-9
- addons: {apt: {packages: oracle-java8-installer}}
jdk: oraclejdk8
env: PROFILE='test262-travisci' JAVA_VERSION=8
- addons: {apt: {packages: oracle-java9-installer}}
jdk: oraclejdk9
env: PROFILE='test262-travisci' JAVA_VERSION=9
before_install:
# - remove_dir_from_path $JAVA_HOME/bin
# - export JAVA_HOME=/usr/lib/jvm/java-$JAVA_VERSION-oracle
# - export PATH=$JAVA_HOME/bin:$PATH
- java -version
- if [[ $JAVA_VERSION = '9' ]]; then echo "export MAVEN_OPTS='-Dmaven.repo.local=$HOME/.m2/repository -Xmx512m'" > ~/.mavenrc; else true; fi
install:
- if [[ $PROFILE = 'test262-travisci' ]]; then git clone --depth 1 --branch master git://github.com/tc39/test262.git "${TEST262_PATH}"; else true; fi
- mvn install --show-version --batch-mode --quiet --errors -DskipTests=true
# before_script: <cmd>
script: mvn verify --batch-mode --activate-profiles "${PROFILE}"
# after_script: <cmd>
# after_success: <cmd>
# after_failure: <cmd>
notifications:
email:
on_success: always
on_failure: always
# Setup for automatic release tagging.
# before_deploy:
# - git config --local user.name "es6draft automatic release"
# - git config --local user.email "release@es6draft.invalid"
# - git tag "$(date +'%Y-%m-%dT%H:%M:%S') at $(git log --format=%h -1)"
deploy:
provider: releases
api_key:
secure: MNgtyI7F8Xbhl5zeowUZcIll7LfexKKyHqcRGaryOPTVbTcIGG01yl8682ypJ6h1HZT8kJ/8hpcUYnPdd3FE0CET4/gpnzuM92yFZNKeRrNQ8jtrL4ElPacOx8Yvaa+yKkhFjU6zirCIiLug/3C3smFaIdrCNlb/3P2DNUo+dlQ=
file: target/es6draft.zip
skip_cleanup: true
on:
repo: anba/es6draft
tags: true
jdk: oraclejdk8
condition: $PROFILE = 'skip-external'