travis: cleanup & add 32-bit Linux testing (#11337)
This commit is contained in:
parent
5b27b263fd
commit
1d00f7f9d7
4 changed files with 39 additions and 17 deletions
48
.travis.yml
48
.travis.yml
|
|
@ -8,13 +8,35 @@ matrix:
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
env: NIM_COMPILE_TO_CPP=false
|
env:
|
||||||
|
- NIM_COMPILE_TO_CPP=false
|
||||||
|
- CPU=amd64
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env:
|
||||||
|
- NIM_COMPILE_TO_CPP=false
|
||||||
|
- CPU=i386
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- gcc-multilib
|
||||||
|
- g++-multilib
|
||||||
|
- libcurl4-openssl-dev:i386
|
||||||
|
- libgc-dev:i386
|
||||||
|
- libglib2.0-dev:i386
|
||||||
|
- libpulse-dev:i386
|
||||||
|
- libsdl1.2-dev:i386
|
||||||
|
- libsfml-dev:i386
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
env: NIM_COMPILE_TO_CPP=false
|
env:
|
||||||
|
- NIM_COMPILE_TO_CPP=false
|
||||||
|
- CPU=amd64
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
env: NIM_COMPILE_TO_CPP=true
|
env:
|
||||||
|
- NIM_COMPILE_TO_CPP=true
|
||||||
|
- CPU=amd64
|
||||||
|
|
||||||
# To allow failures for a failing configuration, use something like:
|
# To allow failures for a failing configuration, use something like:
|
||||||
# allow_failures:
|
# allow_failures:
|
||||||
|
|
@ -23,6 +45,7 @@ matrix:
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
# update the list above if more deps are introduced
|
||||||
packages:
|
packages:
|
||||||
- libcurl4-openssl-dev
|
- libcurl4-openssl-dev
|
||||||
- libsdl1.2-dev
|
- libsdl1.2-dev
|
||||||
|
|
@ -34,25 +57,22 @@ addons:
|
||||||
- make
|
- make
|
||||||
- sfml
|
- sfml
|
||||||
|
|
||||||
|
install:
|
||||||
|
- if [[ $CPU = i386 ]]; then echo -e "#!/bin/bash\n$(which gcc) -m32 \"\$@\"" > bin/gcc; fi
|
||||||
|
- if [[ $CPU = i386 ]]; then chmod 755 bin/gcc; fi
|
||||||
|
- if [[ $CPU = i386 ]]; then echo -e "#!/bin/bash\n$(which g++) -m32 \"\$@\"" > bin/g++; fi
|
||||||
|
- if [[ $CPU = i386 ]]; then chmod 755 bin/g++; fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- set -e
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then unset -f cd; fi
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shell_session_update() { :; }; fi
|
|
||||||
- git clone --depth 1 https://github.com/nim-lang/csources.git
|
- git clone --depth 1 https://github.com/nim-lang/csources.git
|
||||||
- cd csources
|
- export PATH="$PWD/bin${PATH:+:$PATH}"
|
||||||
- make -j 2 LD=$CC
|
- make -C csources -j 2 LD=$CC ucpu=$CPU
|
||||||
- cd ..
|
|
||||||
- export PATH=$(pwd)/bin${PATH:+:$PATH}
|
|
||||||
- echo PATH:${PATH}
|
|
||||||
- set +e # prevents breaking after_failure
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- set -e
|
|
||||||
- echo "travis_fold:start:nim_c_koch"
|
- echo "travis_fold:start:nim_c_koch"
|
||||||
- nim c koch
|
- nim c koch
|
||||||
- echo "travis_fold:end:nim_c_koch"
|
- echo "travis_fold:end:nim_c_koch"
|
||||||
- ./koch runCI
|
- ./koch runCI
|
||||||
- set +e
|
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
# Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html
|
# Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html
|
||||||
|
|
|
||||||
2
koch.nim
2
koch.nim
|
|
@ -165,7 +165,7 @@ proc buildNimble(latest: bool) =
|
||||||
nimCompile(installDir / "src/nimble.nim", options = "--noNimblePath --nilseqs:on -d:release")
|
nimCompile(installDir / "src/nimble.nim", options = "--noNimblePath --nilseqs:on -d:release")
|
||||||
|
|
||||||
proc bundleNimsuggest() =
|
proc bundleNimsuggest() =
|
||||||
nimCompile("nimsuggest/nimsuggest.nim", options = "-d:release")
|
nimCompileFold("Compile nimsuggest", "nimsuggest/nimsuggest.nim", options = "-d:release")
|
||||||
|
|
||||||
proc buildVccTool() =
|
proc buildVccTool() =
|
||||||
nimCompileFold("Compile Vcc", "tools/vccexe/vccexe.nim")
|
nimCompileFold("Compile Vcc", "tools/vccexe/vccexe.nim")
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,15 @@
|
||||||
discard """
|
discard """
|
||||||
errormsg: "type mismatch: got <array[0..0, type int]>"
|
errormsg: "type mismatch: got <array[0..0, type int]>"
|
||||||
line: 15
|
line: 16
|
||||||
nimout: '''
|
nimout: '''
|
||||||
twrong_at_operator.nim(15, 30) Error: type mismatch: got <array[0..0, type int]>
|
twrong_at_operator.nim(16, 30) Error: type mismatch: got <array[0..0, type int]>
|
||||||
but expected one of:
|
but expected one of:
|
||||||
proc `@`[T](a: openArray[T]): seq[T]
|
proc `@`[T](a: openArray[T]): seq[T]
|
||||||
proc `@`[IDX, T](a: array[IDX, T]): seq[T]
|
proc `@`[IDX, T](a: array[IDX, T]): seq[T]
|
||||||
|
|
||||||
expression: @[int]
|
expression: @[int]
|
||||||
'''
|
'''
|
||||||
|
disabled: "32bit"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# bug #7331
|
# bug #7331
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
outputsub: "true"
|
outputsub: "true"
|
||||||
|
disabled: "32bit"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from strutils import join
|
from strutils import join
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue