This repository has been archived by the owner on Sep 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
51 lines (51 loc) · 1.91 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
language: c
# Handle git submodules yourself
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
#before_install:
# - sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
# - git submodule update --init --recursive
install:
- |
if [ ! -x nim-devel/bin/nim ]; then
# If the Nim executable does not exist (means we haven't installed Nim yet)
# (do what we did before)
git clone -b devel --depth 1 git://github.com/nim-lang/nim nim-devel/
cd nim-devel
git clone -b master --depth 1 git://github.com/nim-lang/csources csources/
cd csources
sh build.sh
cd ..
rm -rf csources
bin/nim c koch
./koch boot -d:release
else
# We already have the repository, go to it
cd nim-devel
# Download latest commits from the repository
git fetch origin
if ! git merge FETCH_HEAD | grep "Already up-to-date"; then
# Recompile Nim (using itself), only if there were new changes
bin/nim c koch
./koch boot -d:release
fi
fi
if [ ! -x nim-devel/bin/nimble ]; then
./koch nimble
fi
cd ..
before_script:
- export PATH="nim-devel/bin${PATH:+:$PATH}"
script:
- nimble install -y
- nim compile --compileOnly --verbosity:0 examples/desktop/00-hello-world/main.nim
- nim compile --compileOnly --verbosity:0 examples/desktop/01-sprite-batch/main.nim
#- nim compile --verbosity:0 examples/desktop/02-audio/main.nim # Need to figure out a way to compile examples depending on openal
- nim compile --compileOnly --verbosity:0 examples/desktop/03-input/main.nim
- nim compile --compileOnly --verbosity:0 examples/desktop/04-sprite-animation/main.nim
- nim compile --compileOnly --verbosity:0 examples/desktop/05-gui/main.nim
- nim compile --compileOnly --verbosity:0 examples/desktop/06-physics/main.nim
cache:
directories:
- nim-devel