forked from guillep/Scale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 1.41 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
language: c
sudo: required
matrix:
include:
- os: linux
dist: trusty
env: DISTRO="trusty" TEST="BASIC"
- os: linux
dist: trusty
env: DISTRO="trusty" TEST="UNINSTALL"
- os: linux
dist: precise
env: DISTRO="precise" TEST="BASIC"
- os: linux
dist: precise
env: DISTRO="precise" TEST="UNINSTALL"
- os: osx
env: TEST="BASIC"
- os: osx
env: TEST="UNINSTALL"
before_install:
- if [[ "$DISTRO" == "trusty" ]]; then sudo dpkg --add-architecture i386 ; fi
- if [[ "$DISTRO" == "trusty" ]]; then sudo apt-get update ; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-get install libssl1.0.0:i386 libfreetype6:i386 libasound2:i386 lib32z1 lib32bz2-1.0 ;fi
install:
- ./build/build.sh
- sudo ./build/scale-bootstrap build/install.st
- export PATH=$PATH:~/.scale/scale
script:
- if [[ "$TEST" == "UNINSTALL" ]]; then sudo PATH=$PATH:~/.scale/scale $HOME/.scale/scale/uninstall.st ; fi
- if [[ "$TEST" == "BASIC" ]]; then ./examples/lsst.st ; fi
- if [[ "$TEST" == "BASIC" ]]; then ./examples/ls.st ; fi
- if [[ "$TEST" == "BASIC" ]]; then ./examples/fact.st ; fi
- if [[ "$TEST" == "BASIC" ]]; then ./examples/download.st -v 60 ; fi
- if [[ "$TEST" == "BASIC" ]]; then ./examples/parallel-call.st ; fi
- if [[ "$TEST" == "BASIC" ]]; then ./examples/parallel-call2.st ; fi
- if [[ "$TEST" == "BASIC" ]]; then ./examples/stdout.st ; fi