Skip to content
Permalink
Browse files

Initial commit

  • Loading branch information...
LithyBackup committed Feb 10, 2019
1 parent 9788923 commit a1faf36c5cb4984cd5aac2bb128f9615c32107a2
Showing 2,521 changed files with 768,262 additions and 0 deletions.
@@ -0,0 +1,35 @@
os: Visual Studio 2017

cache: c:\users\appveyor\clcache

environment:
BOOST_ROOT: C:\Libraries\boost_1_67_0
BOOST_LIBRARYDIR: C:\Libraries\boost_1_67_0\lib64-msvc-14

init:
- set PATH=c:\Python37;c:\Python37\Scripts;%PATH%
- pip install clcache

before_build:
- clcache -s

build_script:
- md build
- cd build
- cmake -G "Visual Studio 15 2017 Win64" ..
- MSBuild Lithe.sln /p:CLToolExe=clcache.exe /p:CLToolPath=c:\Python37\Scripts\ /p:Configuration=Release /m
- src\Release\cryptotest.exe

after_build:
- clcache -s
- if not defined APPVEYOR_REPO_TAG_NAME (set APPVEYOR_REPO_TAG_NAME=%APPVEYOR_REPO_COMMIT%)
- cd src\Release
- mkdir lithe-%APPVEYOR_REPO_TAG_NAME%
- copy *.exe lithe-%APPVEYOR_REPO_TAG_NAME%
- copy ..\..\..\LICENSE lithe-%APPVEYOR_REPO_TAG_NAME%
- 7z a lithe-%APPVEYOR_REPO_TAG_NAME%-windows.zip lithe-%APPVEYOR_REPO_TAG_NAME%
- copy lithe-%APPVEYOR_REPO_TAG_NAME%-windows.zip ..\..\..\

artifacts:
- path: lithe-$(APPVEYOR_REPO_TAG_NAME)-windows.zip
name: LitheRelease
@@ -0,0 +1,148 @@
sudo: false
language: cpp
cache: ccache
matrix:
include:

# Ubuntu, g++-8
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libboost1.55-all-dev
- g++-8
- gcc-8
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- LABEL="linux"
- _DEPLOYABLE="true"
- STRIP="strip"

# Ubuntu, g++-7
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libboost1.55-all-dev
- g++-7
- gcc-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- LABEL="linux-g++-7"
- STRIP="strip"

# Ubuntu, clang-6
- os: linux
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- libboost1.55-all-dev
- clang-6.0
- libstdc++-7-dev
env:
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
- LABEL="linux-clang-6"
- STRIP="strip"

## OSX, g++-8
- os: osx
osx_image: xcode10
compiler: gcc
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- LABEL="osx-g++-8"
- STRIP="strip"

# OSX, g++-7
- os: osx
osx_image: xcode10
compiler: gcc
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- LABEL="osx-g++-7"
- STRIP="strip"

# OSX, clang
- os: osx
osx_image: xcode10
compiler: clang
env:
- MATRIX_EVAL="CC=/usr/local/opt/llvm/bin/clang && CXX=/usr/local/opt/llvm/bin/clang++"
- LABEL="osx"
- _DEPLOYABLE="true"
- STRIP="strip"

# Arm (aarch64) cross compile
- os: linux
env:
- MATRIX_EVAL="CC=aarch64-linux-gnu-gcc && CXX=aarch64-linux-gnu-g++"
- LABEL="aarch64"
- _DEPLOYABLE="true"
- STRIP="aarch64-linux-gnu-strip"

before_install:
- eval $MATRIX_EVAL

install:
# Need to uninstall oclint to get newer gcc installed https://github.com/travis-ci/travis-ci/issues/8826
- if [[ "${LABEL:0:3}" == "osx" ]]; then brew cask uninstall --force oclint || true ; fi

# Need a newer version of llvm to link against to get std::filesystem / std::experimental::filesystem
- if [[ "${LABEL:0:3}" == "osx" ]]; then travis_retry brew install llvm || travis_retry brew upgrade llvm ; fi

# Neeed to install ccache
- if [[ "${LABEL:0:3}" == "osx" ]]; then travis_retry brew install ccache ; fi
- if [[ "${LABEL:0:3}" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi

# Install the correct gcc version
- if [[ "$LABEL" == "osx-g++-8" ]]; then travis_retry brew install gcc@8 ; fi
- if [[ "$LABEL" == "osx-g++-7" ]]; then travis_retry brew install gcc@7 ; fi

- if [[ "$LABEL" == "aarch64" ]]; then export BASEDIR=`pwd` ; fi
- if [[ "$LABEL" == "aarch64" ]]; then cd $HOME ; fi
- if [[ "$LABEL" == "aarch64" ]]; then wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-a/8.2-2018.08/gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu.tar.xz ; fi
- if [[ "$LABEL" == "aarch64" ]]; then wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz ; fi
- if [[ "$LABEL" == "aarch64" ]]; then mkdir toolchain && cd toolchain ; fi
- if [[ "$LABEL" == "aarch64" ]]; then tar xfv ../gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu.tar.xz >/dev/null ; fi
- if [[ "$LABEL" == "aarch64" ]]; then cd gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu ; fi
- if [[ "$LABEL" == "aarch64" ]]; then tar zxvf ../../boost_1_55_0.tar.gz >/dev/null ; fi
- if [[ "$LABEL" == "aarch64" ]]; then cd boost_1_55_0 ; fi
- if [[ "$LABEL" == "aarch64" ]]; then ./bootstrap.sh ; fi
- if [[ "$LABEL" == "aarch64" ]]; then curl https://raw.githubusercontent.com/lithe-project/lithe/development/scripts/fix_boost_aarch64.sh | sh ; fi
- if [[ "$LABEL" == "aarch64" ]]; then ./b2 toolset=gcc-aarch64 --with-system --with-filesystem --with-thread --with-date_time --with-chrono --with-regex --with-serialization --with-program_options >/dev/null; fi
- if [[ "$LABEL" == "aarch64" ]]; then export CUSTOM_BOOST_ROOT="-DBOOST_ROOT=`pwd`" ; fi
- if [[ "$LABEL" == "aarch64" ]]; then export CUSTOM_TOOLCHAIN="-DCMAKE_TOOLCHAIN_FILE=../scripts/cross-aarch64.cmake" ; fi
- if [[ "$LABEL" == "aarch64" ]]; then export STRIP="$HOME/toolchain/gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-strip" ; fi
- if [[ "$LABEL" == "aarch64" ]]; then cd $BASEDIR ; fi

script:
- eval $MATRIX_EVAL
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DSTATIC=true .. ${CUSTOM_TOOLCHAIN} ${CUSTOM_BOOST_ROOT} ${ADDITIONAL_CMAKE_ARGS}
- make -j2
- if [[ "$LABEL" != "aarch64" ]]; then ./src/cryptotest ; fi

before_deploy:
- if [[ "${TRAVIS_TAG}" == "" ]]; then export TRAVIS_TAG=${TRAVIS_COMMIT} ; fi
- cd src
- TARGETS="Lithed miner zedwallet lithe-service zedwallet-beta cryptotest wallet-api"
- ${STRIP} ${TARGETS}
- rm -rf lithe-${TRAVIS_TAG}
- mkdir lithe-${TRAVIS_TAG}
- cp ${TARGETS} lithe-${TRAVIS_TAG}/
- cp ../../LICENSE lithe-${TRAVIS_TAG}/
- tar cvfz lithe-${TRAVIS_TAG}-${LABEL}.tar.gz lithe-${TRAVIS_TAG}/
- rm -rf builds
- mkdir builds
- cp lithe-${TRAVIS_TAG}-${LABEL}.tar.gz builds
- cd ..

0 comments on commit a1faf36

Please sign in to comment.
You can’t perform that action at this time.