-
Notifications
You must be signed in to change notification settings - Fork 48
/
.travis.yml
83 lines (81 loc) · 4.42 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
language: java
install: true
sudo: true
addons:
apt:
update: true
jdk:
- openjdk8
before_install:
- chmod +x ./showcase/gradlew
- chmod +x gradlew
- gcloud version || true
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash > /dev/null; fi
# Add gcloud to $PATH
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud components install app-engine-java
- gcloud config set project wicked-charts-showcase
stages:
- name: build
- name: snapshot
if: branch = master AND type IN (push)
- name: release
if: branch = release AND type IN (push)
- name: showcase-build
- name: showcase-deploy
if: branch = release OR branch = master AND type IN (push)
jobs:
include:
- stage: build
script: "./gradlew build"
- stage: snapshot
script:
- "./gradlew chartjs-wrapper:artifactoryPublish -x test -Dsnapshot=true -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew highcharts-wrapper:artifactoryPublish -x test -Dsnapshot=true -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew jsf:wicked-charts-jsf21:artifactoryPublish -x test -Dsnapshot=true
-Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket14:artifactoryPublish -x test -Dsnapshot=true
-Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket15:artifactoryPublish -x test -Dsnapshot=true
-Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket6:artifactoryPublish -x test -Dsnapshot=true
-Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket7:artifactoryPublish -x test -Dsnapshot=true
-Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket8:artifactoryPublish -x test -Dsnapshot=true
-Dbintray.user=$BINTRAY_USER -Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- stage: release
script:
- "./gradlew chartjs-wrapper:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew highcharts-wrapper:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew jsf:wicked-charts-jsf21:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket14:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket15:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket6:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket7:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- "./gradlew wicket:wicked-charts-wicket8:bintrayUpload -x test -Dbintray.user=$BINTRAY_USER
-Dbintray.key=$BINTRAY_KEY -Dbuild.number=$TRAVIS_BUILD_NUMBER"
- stage: showcase-build
install: skip
script:
- "./gradlew build publishToMavenLocal -Dsnapshot=true && cd showcase && ./gradlew build"
- stage: showcase-deploy
install: skip
script:
- "cd showcase &&
openssl aes-256-cbc -K $encrypted_05eb42a9daa3_key -iv $encrypted_05eb42a9daa3_iv -in Wicked-Charts-Showcase-887cff2298d0.json.enc -out Wicked-Charts-Showcase-887cff2298d0.json -d
&& gcloud auth activate-service-account --key-file=Wicked-Charts-Showcase-887cff2298d0.json
&&./gradlew wicked-charts-showcase-wicket8:appengineDeploy
&&./gradlew wicked-charts-showcase-wicket7:appengineDeploy
&&./gradlew wicked-charts-showcase-wicket6:appengineDeploy
&&./gradlew wicked-charts-showcase-wicket15:appengineDeploy
&&./gradlew wicked-charts-showcase-wicket14:appengineDeploy"