-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (52 loc) · 1.5 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
52
53
54
55
56
57
58
59
60
61
language: c++
#dotnet cli require Ubuntu 14.04
sudo: required
dist: trusty
#dotnet cli require OSX 10.10
osx_image: xcode7.1
addons:
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
os:
- osx
- linux
env:
matrix:
- CLI_VERSION=1.0.0-beta-002071
- CLI_VERSION=Latest
matrix:
allow_failures:
- env: CLI_VERSION=Latest
before_install:
- find ./scripts -name "*.sh" -exec chmod +x {} \;
- ./scripts/show-dotnet-info.sh
#- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install icu4c; fi
# Download script to install dotnet cli
- curl -L --create-dirs https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/install.sh -o ./scripts/obtain/install.sh
- find ./scripts -name "*.sh" -exec chmod +x {} \;
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
# use bash to workaround bug https://github.com/dotnet/cli/issues/1725
- sudo bash ./scripts/obtain/install.sh --channel "preview" --version "$CLI_VERSION" --install-dir "$DOTNET_INSTALL_DIR" --no-path
# add dotnet to PATH
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
script:
- ./scripts/show-dotnet-info.sh
# Workaround "Too many open files"
- ulimit -n 1024
# dotnet info
- dotnet --info
# Run dotnet new
- mkdir -p "test/test-dotnet-new" && pushd "test/test-dotnet-new"
- dotnet new --lang f#
- dotnet restore
- dotnet --verbose build
- dotnet --verbose run a b
- popd
# Run all tests
- ./scripts/run-tests.sh