-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
26 lines (25 loc) · 1.23 KB
/
circle.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
# Based on https://github.com/jfoenixadmin/JFoenix/blob/master/circle.yml
machine:
pre:
# This manual setup of Java 8 is required, since the Java 8 version provided by CircleCI does not contain JavaFX.
- sudo add-apt-repository ppa:webupd8team/java -y
- sudo apt-get update
- echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
- sudo apt-get install oracle-java8-installer oracle-java8-set-default
environment:
JAVA_HOME: /usr/lib/jvm/java-8-oracle
dependencies:
override:
# Dropbox API key
- cp cm-plugin-dropbox/apikeys.properties.sample cm-plugin-dropbox/apikeys.properties
- sed -i -e "s/<DB_KEY>/$DB_KEY/g" -e "s/<DB_SECRET>/$DB_SECRET/g" cm-plugin-dropbox/apikeys.properties
# Google Drive API key
- cp cm-plugin-googledrive/apikeys.properties.sample cm-plugin-googledrive/apikeys.properties
- sed -i -e "s/<GD_KEY>/$GD_KEY/g" -e "s/<GD_SECRET>/$GD_SECRET/g" cm-plugin-googledrive/apikeys.properties
# Install dependencies
- mvn install
test:
post:
- cd cm-gui && mvn jfx:native
- tar -zcvf "$CIRCLE_ARTIFACTS/app.tgz" cm-gui/target/jfx/app/*
- tar -zcvf "$CIRCLE_ARTIFACTS/natives.tgz" cm-gui/target/jfx/native/*