summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 084961c112b87976882753d19236fe4e719f2321 (plain)
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
sudo: required
dist: trusty
language: c

before_script:
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq build-essential libconfig-dev libvpx-dev libopus-dev check cscope
  # install sodium, needed for toxcore
  - git clone https://github.com/jedisct1/libsodium.git
  - cd libsodium
  - git checkout tags/1.0.10
  - ./autogen.sh
  - ./configure
  - make -j3
  - sudo make install
  - cd ..
  - sudo ldconfig
  # install toxcore
  - git clone https://github.com/irungentoo/toxcore.git
  - cd toxcore
  - ./autogen.sh
  - ./configure
  - make -j3
  - sudo make install
  - cd ..
  - sudo ldconfig

script:
  - make tuntox_static TOXCORE_STATIC_LIB=/usr/local/lib/libtoxcore.a SODIUM_STATIC_LIB=/usr/local/lib/libsodium.a
  - make cscope.out

env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "VjQmHxt7StKi1XF45IaYei3/0GtpIjeCeySLCPyHYnSlTMYw1VWti9Pow2Vr7mses27KddWhgl54hYjukaqyNFklfz+cXuke+VSwLp/wKlC7hV+frsrodWCd35hvNDZV3Q49e1u0944Oz4ggiS1yX1+dlXZO/v6HINXouSJbbk/0UowW4T6vkD5x/Muq7ddf5J9qMr6XF7oGzZO/fHnWO4B+xILiWs3R6gk24B8IksHiHEDIsruGnbSx2OUvoYiyNOW9hVczf2DIMZVKhqWxCX7/dEs2E5K4+/pbGfww4JhbGUMtkkGk97a7Y8rdXhs1l+k5IbG9MoZ5MxcyE1t8DRJSiT8SI50AUzDZGpU7YKIRWFxj9hyIlxPuv9aL3AyhGDzHCLAUGCtV0LYWuXUKusfQ3YuWoc/Z+6I9tIDBUdGtPp8R+P7x2pHnq08PQecBgGh+KOj2rkJBv3jP5GTrH7OtjwdKQyggni+otL/0ydq9Cj67sbt2jerjlBWtI4Vg2jVbRwIT2jDcUCMwrL5kCkuXiSvywlvA/qLVIkAvLILdbIXFBUYh/N4z00YiiVhpbc3AkJaiuhDtese272nXPeYTw6qtQnZyoud3jQjWpGmsD7uYstbnRNYsmYWf4Nz2+XIJtAmqHBhRYuq50Q1ImPY2cJyo0yZ6tniSKCcqHRI="

addons:
  coverity_scan:
    project:
      name: "gjedeer/tuntox"
      description: "Build submitted via Travis CI"
    notification_email: gdr@gdr.name
    build_command_prepend: "make clean"
    build_command:   "make"
    branch_pattern: master