2019-11-10 20:26:11 +00:00
|
|
|
arch:
|
|
|
|
- arm64
|
|
|
|
|
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
|
2019-11-21 04:04:47 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/.sccache/
|
2019-11-21 05:24:11 +00:00
|
|
|
- /home/travis/.cargo/bin/
|
2019-11-21 04:04:47 +00:00
|
|
|
|
2019-11-10 20:26:11 +00:00
|
|
|
script:
|
2019-11-21 04:04:47 +00:00
|
|
|
# Sccache
|
2019-11-21 04:12:48 +00:00
|
|
|
# - curl -L https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-unknown-linux-musl.tar.gz | tar xzf -
|
|
|
|
# - export RUSTC_WRAPPER=`pwd`/sccache-0.2.10-x86_64-unknown-linux-musl/sccache
|
2019-11-21 04:42:17 +00:00
|
|
|
- test -f /home/travis/.cargo/bin/sccache || cargo install sccache
|
2019-11-21 04:28:04 +00:00
|
|
|
- export RUSTC_WRAPPER=/home/travis/.cargo/bin/sccache
|
2019-11-21 04:04:47 +00:00
|
|
|
- mkdir -p /home/travis/.sccache/
|
|
|
|
- export SCCACHE_DIR="/home/travis/.sccache/"
|
|
|
|
- SCCACHE_ERROR_LOG=`pwd`/sccache.log RUST_LOG=debug $RUSTC_WRAPPER --start-server
|
|
|
|
- $RUSTC_WRAPPER -s
|
|
|
|
|
|
|
|
# Tests
|
2019-11-10 20:51:06 +00:00
|
|
|
- make spectests-singlepass
|
2019-11-21 04:04:47 +00:00
|
|
|
|
|
|
|
# Release
|
2019-11-21 03:36:34 +00:00
|
|
|
- make release-singlepass
|
|
|
|
- make wapm
|
|
|
|
- make build-install
|
2019-11-21 04:04:47 +00:00
|
|
|
- mkdir -p artifacts
|
2019-11-21 03:36:34 +00:00
|
|
|
- cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh)
|
|
|
|
|
2019-11-21 04:04:47 +00:00
|
|
|
before_deploy:
|
|
|
|
# Set up git user name and tag this commit
|
|
|
|
- git config --local user.name "Syrus Akbary"
|
|
|
|
- git config --local user.email "syrus@wasmer.io"
|
|
|
|
- export TRAVIS_TAG="0.10.2"
|
|
|
|
- git tag $TRAVIS_TAG
|
|
|
|
|
2019-11-21 05:05:22 +00:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
file_glob: true
|
|
|
|
file: artifacts/*
|
|
|
|
api_key: $GITHUB_OAUTH_TOKEN
|
|
|
|
# This is set to the previous artifacts are not deleted by travis
|
|
|
|
skip_cleanup: true
|
2019-11-21 05:24:11 +00:00
|
|
|
on:
|
|
|
|
branch: feature/singlepass-aarch64
|
|
|
|
|
2019-11-10 20:51:06 +00:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-11-10 20:58:55 +00:00
|
|
|
- cmake
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- feature/singlepass-aarch64
|