forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 7
/
jitpack.yml
15 lines (15 loc) · 937 Bytes
/
jitpack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
install:
- set -exo pipefail
- mkdir python_tmp
- wget https://github.com/kageiit/jitpack-python/releases/download/3.8/python-3.8-ubuntu-16.tar.gz -O python_tmp/python.tar.gz
- tar -C python_tmp -xf python_tmp/python.tar.gz
- export PATH="$PATH:python_tmp/bin"
- ant
- PEX=$(bin/buck build buck --show-output | awk '{print $2}')
- SHA=$(git rev-parse HEAD)
- mvn install:install-file -Dfile="$PEX" -DgroupId="$GROUP" -DartifactId="$ARTIFACT" -Dversion="$SHA" -Dpackaging="pex" -DgeneratePom=true
- export JAVA_HOME="/usr/lib/jvm/jdk-11"
- export PATH="/usr/lib/jvm/jdk-11:$PATH"
- ant clean && ant
- JAVA11_PEX=$(bin/buck build --config java.target_level=11 --config java.source_level=11 buck --show-output | awk '{print $2}')
- mvn install:install-file -Dfile="$JAVA11_PEX" -DgroupId="$GROUP" -DartifactId="$ARTIFACT" -Dversion="$SHA" -Dclassifier="java11" -Dpackaging="pex" -DgeneratePom=true