Add .travis.yml and 2 more files to support building on travis ci (#136)

This commit is contained in:
Charlie O'Keefe 2020-06-18 12:55:33 -06:00 committed by GitHub
parent 5e19269822
commit 796ba6b727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 0 deletions

24
.travis.yml Normal file
View File

@ -0,0 +1,24 @@
language: swift
os: osx
osx_image: xcode11.5
xcode_workspace: ./wallet/wallet.xcworkspace
xcode_scheme: wallet
xcode_destination: platform=iOS Simulator,OS=13.2.2,name=iPhone 8
addons:
homebrew:
packages:
- rustup-init
- sourcery
env:
global:
- ZCASH_NETWORK_ENVIRONMENT: TESTNET
install:
- ${TRAVIS_BUILD_DIR}/Scripts/travis/rust_setup.sh
- WALLET_DIR=${TRAVIS_BUILD_DIR}/wallet
- WALLET_WALLET_DIR=${WALLET_DIR}/wallet
- cp ${WALLET_DIR}/env-vars.sh.example ${WALLET_DIR}/env-vars.sh
- cd ${WALLET_DIR} ; pod install ; cd ${TRAVIS_BUILD_DIR}
- curl https://download.z.cash/downloads/sapling-output.params > ${WALLET_WALLET_DIR}/sapling-output.params
- curl https://download.z.cash/downloads/sapling-spend.params > ${WALLET_WALLET_DIR}/sapling-spend.params
script:
- travis_wait 60 xcodebuild -quiet -workspace ${TRAVIS_BUILD_DIR}/wallet/wallet.xcworkspace -scheme wallet -destination platform\=iOS\ Simulator,OS\=13.2.2,name\=iPhone\ 8 build

10
Scripts/travis/rust_setup.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -x
rustup-init --verbose -y
source $HOME/.cargo/env
cargo install cargo-lipo
rustup target add aarch64-apple-ios x86_64-apple-ios

View File

@ -0,0 +1 @@
export LIGHTWALLETD_ADDRESS="localhost%3a9067"