-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (44 loc) · 1.26 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: rust
sudo: required
dist: bionic
INSTALL_NODE_VIA_NVM: &INSTALL_NODE_VIA_NVM
|
rustup target add wasm32-unknown-unknown
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.nvm/nvm.sh
nvm install lts/carbon
cache: cargo
addons:
apt:
packages:
- wine-stable
- wine32
# - xvfb
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "Deep"
- git config --local user.email "[email protected]"
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: deploys/*
skip_cleanup: true
matrix:
include:
- name: BuildWeb
env: RUST_BACKTRACE=1
rust: stable
install:
- *INSTALL_NODE_VIA_NVM
- npm install -g cordova
- npm install
script:
- curl -L https://github.com/rustwasm/wasm-pack/releases/download/v0.9.1/wasm-pack-v0.9.1-x86_64-unknown-linux-musl.tar.gz --output wasm-pack.tar.gz
- tar -zxvf wasm-pack.tar.gz
- export PATH="$PATH:$PWD/wasm-pack"
- export WASM_PACK_PATH="$PWD/wasm-pack/wasm-pack"
- npm run build
- bash build_and_fixcordova.sh