From cc19e3d9540019df760e92a126a853518a76aae5 Mon Sep 17 00:00:00 2001 From: Andrei Bancioiu Date: Fri, 24 Jul 2020 17:28:42 +0300 Subject: [PATCH] Undo travis.yml. --- .travis.yml | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 84 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f07065..f587c86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,23 +3,102 @@ arch: matrix: include: + - language: python + os: linux + dist: bionic + before_install: + - sudo apt-get update + - sudo apt install gcc-multilib g++-multilib -y + - go version + - python3 --version + - pip3 --version + - pip3 install Pillow + + install: + - mkdir buildchain + - mkdir buildchain/clang-arm-fropi + - mkdir sdk + - mkdir sdk/nanos-secure-sdk + + - wget https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2 + - tar xf gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2 + - rm gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2 + - mv gcc-arm-none-eabi-5_3-2016q1 buildchain/gcc-arm-none-eabi-5_3-2016q1 + + - wget http://releases.llvm.org/4.0.0/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.10.tar.xz -O clang+llvm.tar.xz + - tar xf clang+llvm.tar.xz + - rm clang+llvm.tar.xz + - mv clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.10/* buildchain/clang-arm-fropi + + - wget https://github.com/LedgerHQ/nanos-secure-sdk/archive/nanos-160.tar.gz -O nanos-secure-sdk.tar.gz + - tar xf nanos-secure-sdk.tar.gz + - rm nanos-secure-sdk.tar.gz + - mv nanos-secure-sdk-nanos-160/* sdk/nanos-secure-sdk + before_script: + script: + - BOLOS_ENV=$(pwd)/buildchain BOLOS_SDK=$(pwd)/sdk/nanos-secure-sdk APPVERSION_M=${APPVERSION_M} APPVERSION_N=${APPVERSION_N} APPVERSION_P=${APPVERSION_P} make + - FILE_NAME=elrond-ledger-app-v${APPVERSION_M}.${APPVERSION_N}.${APPVERSION_P}.hex + - cp bin/app.hex $FILE_NAME + deploy: + provider: releases + api_key: $GITHUB_OAUTH_TOKEN + file: $FILE_NAME + skip_cleanup: true + draft: true + - language: go - os: windows + os: linux + before_install: + - go version + install: + before_script: + script: + - FILE_NAME=ElrondTestApp_${TRAVIS_OS_NAME}_v${APPVERSION_M}.${APPVERSION_N}.${APPVERSION_P} + - cd ./testApp/cmd/testApp + - GO111MODULE=on go build -o $FILE_NAME . + - chmod +x $FILE_NAME + - ls + deploy: + provider: releases + api_key: $GITHUB_OAUTH_TOKEN + file: $TRAVIS_BUILD_DIR/testApp/cmd/testApp/$FILE_NAME + skip_cleanup: true + draft: true + + - language: go + os: osx + osx_image: xcode11.3 before_install: - go version install: before_script: script: - - FILE_NAME=ElrondTestApp_TEST.exe + - FILE_NAME=ElrondTestApp_${TRAVIS_OS_NAME}_v${APPVERSION_M}.${APPVERSION_N}.${APPVERSION_P} - cd ./testApp/cmd/testApp - GO111MODULE=on go build -o $FILE_NAME . + - chmod +x $FILE_NAME - ls deploy: provider: releases - api_key: $GITHUB_OAUTH_TOKEN_SECONDARY + api_key: $GITHUB_OAUTH_TOKEN file: $TRAVIS_BUILD_DIR/testApp/cmd/testApp/$FILE_NAME skip_cleanup: true draft: true - on: - branch: fix-windows + - language: go + os: windows + before_install: + - go version + install: + before_script: + script: + - FILE_NAME=ElrondTestApp_${TRAVIS_OS_NAME}_v${APPVERSION_M}.${APPVERSION_N}.${APPVERSION_P}.exe + - cd ./testApp/cmd/testApp + - GO111MODULE=on go build -o $FILE_NAME . + - ls + deploy: + provider: releases + api_key: $GITHUB_OAUTH_TOKEN + file: $TRAVIS_BUILD_DIR/testApp/cmd/testApp/$FILE_NAME + skip_cleanup: true + draft: true