Figuring out linux build with sodium

This commit is contained in:
Ugljesa Jovanovic 2020-06-10 18:28:27 +02:00 committed by Ugljesa Jovanovic
parent ad1cbfcaa9
commit 9255bc44fa
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
2 changed files with 38 additions and 24 deletions

View File

@ -13,33 +13,35 @@ matrix:
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./linuxBuild.sh; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./linuxBuildAndPublish.sh; fi'
- os: osx
osx_image: xcode11.4
language: java
jdk: openjdk12
# - os: osx
# osx_image: xcode11.4
# language: java
# jdk: openjdk12
# -------------------------
# before_script:
# - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
# - source install-jdk.sh --url 'https://api.adoptopenjdk.net/v2/binary/releases/openjdk12?openjdk_impl=hotspot&os=linux&arch=x64&release=latest&heap_size=normal&type=jdk'
# - java --version
env:
KBUILD=linux
JAVA_OPTS=-Xmx2g
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./macBuild.sh; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./macBuildAndPublish.sh; fi'
- os: windows
language: shell
jdk: openjdk12
env:
- GRAVIS="https://raw.githubusercontent.com/DanySK/Gravis-CI/master/"
- JAVA_OPTS=-Xmx2g
- JDK="adopt-openj9@1.11"
before_install:
- curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh
- source ~/.install-jdk-travis.sh
script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./gradlew build ; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew build publishMingwx64PublicationToSnapshotRepository; fi'
# -------------------------
# env:
# KBUILD=linux
# JAVA_OPTS=-Xmx2g
# script:
# - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./macBuild.sh; fi'
# - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./macBuildAndPublish.sh; fi'
# - os: windows
# language: shell
# jdk: openjdk12
# env:
# - GRAVIS="https://raw.githubusercontent.com/DanySK/Gravis-CI/master/"
# - JAVA_OPTS=-Xmx2g
# - JDK="adopt-openj9@1.11"
# before_install:
# - curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh
# - source ~/.install-jdk-travis.sh
# script:
# - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./gradlew build ; fi'
# - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew build publishMingwx64PublicationToSnapshotRepository; fi'
cache:
directories:
- $HOME/.m2/

View File

@ -1 +1,13 @@
./gradlew build
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
cd sodiumWrapper
./makeLinux64.sh
./makeLinuxArm64.sh
#now we can do the delegated build
./gradlew multiplatform-crypto-delegated:build
#and finally pure build
./gradlew multiplatform-crypto:build