package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.1 KiB

6 years ago
sudo: false
language: C
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env:
6 years ago
- MATRIX_PLAT=linux
- MATRIX_CC=gcc-4.9
- MATRIX_CXX=g++-4.9
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
6 years ago
- MATRIX_PLAT=linux
- MATRIX_CC=gcc-6
- MATRIX_CXX=g++-6
5 years ago
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- MATRIX_PLAT=linux
- MATRIX_CC=gcc-8
- MATRIX_CXX=g++-8
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
env:
6 years ago
- MATRIX_PLAT=android
5 years ago
- os: osx
osx_image: xcode10.3
env:
- MATRIX_PLAT=osx
- os: osx
osx_image: xcode10.1
env:
6 years ago
- MATRIX_PLAT=osx
- os: osx
osx_image: xcode9.4
env:
6 years ago
- MATRIX_PLAT=osx
- os: osx
env:
6 years ago
- MATRIX_PLAT=iphoneos
- os: osx
env:
6 years ago
- MATRIX_PLAT=mingw
6 years ago
install:
6 years ago
- git clone --branch=dev https://github.com/xmake-io/xmake.git tboox/xmake --depth 1
6 years ago
- cd ./tboox/xmake
- ./scripts/get.sh __local__
- cd -
6 years ago
- if [ "$MATRIX_PLAT" = "android" ]; then
6 years ago
wget -q https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip;
unzip -q -o ./android-ndk-r19c-linux-x86_64.zip;
fi
6 years ago
script:
6 years ago
- if [ "$MATRIX_PLAT" = "iphoneos" ]; then
travis_wait 60 xmake l ./scripts/test.lua -D -p iphoneos;
6 years ago
elif [ "$MATRIX_PLAT" = "mingw" ]; then
brew install mingw-w64;
CC="" CXX="" travis_wait 60 xmake l ./scripts/test.lua -D -p mingw;
6 years ago
elif [ "$MATRIX_PLAT" = "android" ]; then
travis_wait 60 xmake l ./scripts/test.lua -D -p android --ndk=`pwd`/android-ndk-r19c;
elif [ "$MATRIX_PLAT" = "linux" ]; then
CC=$MATRIX_CC CXX=$MATRIX_CXX travis_wait 60 xmake l ./scripts/test.lua -D;
else
travis_wait 60 xmake l ./scripts/test.lua -D;
fi