Browse Source

ci: add ci buildscript and update travis

Signed-off-by: Sevki <s@sevki.org>
Sevki 6 years ago
parent
commit
532a85f3df
2 changed files with 7 additions and 2 deletions
  1. 1 2
      .travis.yml
  2. 6 0
      util/ci.sh

+ 1 - 2
.travis.yml

@@ -3,14 +3,13 @@ sudo: required
 dist: trusty
 before_install:
   - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-  - sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable -y
   - sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.8 main' -y
   - sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main' -y
   - sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main' -y
   - sudo apt-get update
   - sudo apt-get install -y --force-yes $CC rc golang
 script:
-- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./util/continuous-build.sh; fi
+- ./util/ci.sh
 compiler:
 - gcc-4.8
 - gcc-5

+ 6 - 0
util/ci.sh

@@ -0,0 +1,6 @@
+#!/bin/sh
+: ${CC?"Need to set CC as clang, gcc or a specific version like clang-3.6"}
+: ${ARCH?"Need to set ARCH as aarch64, amd64 or riscv"}
+
+GOBIN="$(pwd)/util" GOPATH="$(pwd)/util/third_party:$(pwd)/util" go get harvey/cmd/...
+./util/build build.json