Skip to content

Commit

Permalink
Undo travis.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Jul 24, 2020
1 parent 3089c5f commit cc19e3d
Showing 1 changed file with 84 additions and 5 deletions.
89 changes: 84 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cc19e3d

Please sign in to comment.