forked from itemisCREATE/solidity-ide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.3 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
sudo: false
dist: xenial
language: generic
jdk:
- openjdk11
node_js:
- "10.16.0"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
services:
- docker
- xvfb
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.cache/yarn
env:
global:
- DISPLAY=:99.0
- MAVEN_OPTS="-Xmx4g"
- TERM=dumb
matrix:
include:
- env: TARGET=2019-06.target
if: branch = master
- env: TARGET=Latest.target
before_install:
- chmod +x $TRAVIS_BUILD_DIR/extensions/vscode/gradlew
script:
- cd releng/com.yakindu.solidity.releng
- mvn clean verify -P$TARGET,tests -Dtycho.disableP2Mirrors=true
- cd ../com.yakindu.solidity.repository/target
- zip -r repository.zip repository
- cd $TRAVIS_BUILD_DIR/extensions/vscode
- ./gradlew vscodeExtension
- cd $TRAVIS_BUILD_DIR
- cp -r plugins/com.yakindu.solidity.ide/target/languageserver extensions/theia/xtext-dsl-extension/languageserver
- cd extensions/theia/
- yarn install
- cd $TRAVIS_BUILD_DIR
- docker build extensions/. -t yakindu/solidity-ide
deploy:
skip_cleanup: true
on:
branch: master
github_token: $GITHUB_TOKEN
provider: script
script: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && docker push yakindu/solidity-ide