-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (36 loc) · 1.25 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
language: rust
dist: trusty
sudo: required
rust:
- nightly
node_js:
- stable
# Cache `cargo install`ed tools, but don't cache the project's `target`
# directory (which ends up over-caching and filling all disk space!)
cache:
directories:
- /home/travis/.cargo
env:
- PATH=$HOME/purescript:$HOME/psc-package:$PATH
install:
- wget https://raw.githubusercontent.com/creationix/nvm/v0.31.0/nvm.sh -O ~/.nvm/nvm.sh
- source ~/.nvm/nvm.sh
- nvm install node
- nvm use node
- rustup target add wasm32-unknown-unknown
- (test -x $HOME/.cargo/bin/wasm-gc || cargo install wasm-gc)
- (test -x $HOME/.cargo/bin/wasm-bindgen || cargo install wasm-bindgen-cli)
- TAG=v0.12.0
- PSC_PACKAGE_TAG=v0.4.2
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
- wget -O $HOME/psc-package.tar.gz https://github.com/purescript/psc-package/releases/download/$PSC_PACKAGE_TAG/linux64.tar.gz
- tar -xvf $HOME/psc-package.tar.gz -C $HOME/
- chmod a+x $HOME/psc-package
- npm install
- npm install -g pulp
- psc-package install
script:
- npm run test:jest
- npm run test:pulp