Skip to content

Commit 34796c6

Browse files
authored
Merge pull request #74 from opilar/feature/ci
OSX and Windows CI
2 parents 7dd4c01 + 75b59c8 commit 34796c6

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rust:
66
before_script:
77
- |
88
pip install 'travis-cargo<0.2' --user &&
9-
export PATH=$HOME/.local/bin:$PATH
9+
export PATH=`python -m site --user-base`/bin:$PATH
1010
script:
1111
- |
1212
travis-cargo build &&
@@ -22,3 +22,6 @@ env:
2222
global:
2323
- TRAVIS_CARGO_NIGHTLY_FEATURE=nightly
2424
- secure: YXu24LptjeYirjWYjWGsMT2m3mB7LvQATE6TVo7VEUXv8GYoy2ORIHD83PeImxC93MmZ01QeUezRzuCW51ZcK92VnNSBttlF60SvIX18VsJrV92tsAhievFstqYQ+fB8DIuQ8noU0jPz7GpI+R9dlTRSImAqWOnVIghA+Wzz7Js=
25+
os:
26+
- linux
27+
- osx

appveyor.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
environment:
2+
global:
3+
PROJECT_NAME: lazy_static
4+
matrix:
5+
# Stable channel
6+
- TARGET: i686-pc-windows-gnu
7+
CHANNEL: stable
8+
- TARGET: i686-pc-windows-msvc
9+
CHANNEL: stable
10+
- TARGET: x86_64-pc-windows-gnu
11+
CHANNEL: stable
12+
- TARGET: x86_64-pc-windows-msvc
13+
CHANNEL: stable
14+
# Beta channel
15+
- TARGET: i686-pc-windows-gnu
16+
CHANNEL: beta
17+
- TARGET: i686-pc-windows-msvc
18+
CHANNEL: beta
19+
- TARGET: x86_64-pc-windows-gnu
20+
CHANNEL: beta
21+
- TARGET: x86_64-pc-windows-msvc
22+
CHANNEL: beta
23+
# Nightly channel
24+
- TARGET: i686-pc-windows-gnu
25+
CHANNEL: nightly
26+
- TARGET: i686-pc-windows-msvc
27+
CHANNEL: nightly
28+
- TARGET: x86_64-pc-windows-gnu
29+
CHANNEL: nightly
30+
- TARGET: x86_64-pc-windows-msvc
31+
CHANNEL: nightly
32+
33+
# Install Rust and Cargo
34+
# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)
35+
install:
36+
- ps: Start-FileDownload "https://static.rust-lang.org/dist/channel-rust-stable"
37+
- ps: $env:RUST_VERSION = Get-Content channel-rust-stable | select -first 1 | %{$_.split('-')[1]}
38+
- if NOT "%CHANNEL%" == "stable" set RUST_VERSION=%CHANNEL%
39+
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:RUST_VERSION}-${env:TARGET}.exe"
40+
- rust-%RUST_VERSION%-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
41+
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
42+
- if "%TARGET%" == "i686-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw32\bin
43+
- if "%TARGET%" == "x86_64-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw64\bin
44+
- rustc -V
45+
- cargo -V
46+
47+
build: false
48+
49+
test_script:
50+
- cargo build --verbose
51+
- cargo test

0 commit comments

Comments
 (0)