-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcircle.yml
48 lines (46 loc) · 1.62 KB
/
circle.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
machine:
environment:
PATH: "$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$HOME/.local/lib"
LD_RUN_PATH: "$LD_RUN_PATH:$HOME/.local/lib"
DYLD_LIBRARY_PATH: "$DYLD_LIBRARY_PATH:$HOME/.local/lib"
LDFLAGS: "-L$HOME/.local/lib"
CPPFLAGS: "-I$HOME/.local/include"
PKG_CONFIG_PATH: "$PKG_CONFIG_PATH:$HOME/.local/lib/pkgconfig"
RUSTC_DATE: "2016-10-06"
# used by cargo
LIBRARY_PATH: "$LIBRARY_PATH:$HOME/.local/lib"
post:
- sed -i 's/github/git-non-exist-hub/g' ~/.gitconfig
dependencies:
cache_directories:
# NOTE: it's bad idea to cache .multirust
# since it'll increase cache restore time
# - ~/.multirust
- ~/.cargo
- ~/.local
pre:
# install rust/cargo
# install SDL2/SDL2_mixer
- |
if [[ ! -e $HOME/.cargo ]]; then
curl https://sh.rustup.rs -sSf |
sh -s -- --no-modify-path --default-toolchain "nightly-${RUSTC_DATE}" -y;
rustup default "nightly-${RUSTC_DATE}";
else
rustup default "nightly-${RUSTC_DATE}";
fi;
if [[ ! -e $HOME/.local/lib/libSDL2.a ]]; then
wget -q https://www.libsdl.org/release/SDL2-2.0.5.tar.gz;
tar xf SDL2-*.tar.gz;
cd SDL2-* && ./configure --prefix=$HOME/.local && make -j install;
fi;
if [[ ! -e $HOME/.local/lib/libSDL2_mixer.a ]]; then
wget -q https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz;
tar xf SDL2_mixer-*.tar.gz;
cd SDL2_mixer-* && ./configure --prefix=$HOME/.local && make -j install;
fi
test:
override:
- cargo build -v
- cargo test -v