File: .travis.yml

package info (click to toggle)
stdx-allocator 3.1.0~beta.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 560 kB
  • sloc: makefile: 7
file content (48 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download | duplicates (2)
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
sudo: false
language: d

os:
 - linux
 - osx

d:
 - ldc
 - ldc-beta
 - dmd
 - dmd-beta

env:
 - ARCH="x86_64"

branches:
  only:
  - master
  - stable

matrix:
  include:
    - {os: linux, d: ldc-beta, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
    - {os: linux, d: ldc, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
    - {os: linux, d: dmd-beta, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
    - {os: linux, d: dmd, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}

install:
    - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        curl -L "https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip" -o ninja-linux.zip
        sudo unzip ninja-linux.zip -d /usr/local/bin
        sudo chmod 755 /usr/local/bin/ninja
        sudo add-apt-repository -y ppa:deadsnakes/ppa
        sudo apt-get -y update
        sudo apt-get -y install python3.6
        curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
        sudo pip3 install meson
      fi

packages:
  - pkg-config

script:
 - echo "$ARCH"
 - dub test --arch "$ARCH"
 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then meson build --default-library=static && cd build && ninja -j4 && ninja -j4 test -v && cd ..; fi # TODO: 32bit meson test