Browse Source

fix travis.yml for building test

pull/23/head
Denio 5 years ago
parent
commit
740e713281
  1. 22
      .travis.yml

22
.travis.yml

@ -1,27 +1,43 @@
language: rust
matrix: matrix:
include: include:
# works on Precise and Trusty # works on Precise and Trusty
- os: linux - os: linux
- dist: xenial
compiler: clang compiler: clang
addons: addons:
apt: apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7'] sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7']
packages: ['clang-3.7', 'g++-8'] packages: ['clang-3.7', 'g++-5']
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"
before_install: before_install:
- gem install bundler
- curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
- export PATH="$PATH:$HOME/.cargo/bin"
- sudo add-apt-repository ppa:beineri/opt-qt591-xenial -y - sudo add-apt-repository ppa:beineri/opt-qt591-xenial -y
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install qt59base qt59websockets libgl1-mesa-dev - sudo apt-get install qt59base qt59websockets libgl1-mesa-dev
- source /opt/qt59/bin/qt59-env.sh - source /opt/qt59/bin/qt59-env.sh
script: script:
- qmake -v - qmake -v
- clang++ -v - clang++ -v
- g++-8 -v - g++-5 -v
- qmake silentdragon-lite.pro CONFIG+=release -spec linux-clang - qmake silentdragon-lite.pro CONFIG+=release -spec linux-clang
- make CC=clang CXX=clang++ -j2 - make CC=clang CXX=clang++ -j2
- make distclean - make distclean
- qmake silentdragon-lite.pro CONFIG+=release -spec linux-g++ - qmake silentdragon-lite.pro CONFIG+=release -spec linux-g++
- res/libsodium/buildlibsodium.sh - res/libsodium/buildlibsodium.sh
- make CC=gcc-8 CXX=g++-8 -j2 - make CC=gcc-5 CXX=g++-5 -j2

Loading…
Cancel
Save