github.com/etsc3259/etsc@v0.0.0-20190109113336-a9c2c10f9c95/.travis.yml (about) 1 language: go 2 go_import_path: github.com/ETSC3259/etsc 3 sudo: false 4 matrix: 5 include: 6 - os: linux 7 dist: trusty 8 sudo: required 9 go: 1.10.x 10 script: 11 - sudo modprobe fuse 12 - sudo chmod 666 /dev/fuse 13 - sudo chown root:$USER /etc/fuse.conf 14 - go run build/ci.go install 15 - go run build/ci.go test -coverage $TEST_PACKAGES 16 17 # These are the latest Go versions. 18 - os: linux 19 dist: trusty 20 sudo: required 21 go: 1.11.x 22 script: 23 - sudo modprobe fuse 24 - sudo chmod 666 /dev/fuse 25 - sudo chown root:$USER /etc/fuse.conf 26 - go run build/ci.go install 27 - go run build/ci.go test -coverage $TEST_PACKAGES 28 29 - os: osx 30 go: 1.11.x 31 script: 32 - unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703 33 - go run build/ci.go install 34 - go run build/ci.go test -coverage $TEST_PACKAGES 35 36 # This builder only tests code linters on latest version of Go 37 - os: linux 38 dist: trusty 39 go: 1.11.x 40 env: 41 - lint 42 git: 43 submodules: false # avoid cloning etsc/tests 44 script: 45 - go run build/ci.go lint 46 47 # This builder does the Ubuntu PPA upload 48 - if: type = push 49 os: linux 50 dist: trusty 51 go: 1.11.x 52 env: 53 - ubuntu-ppa 54 git: 55 submodules: false # avoid cloning etsc/tests 56 addons: 57 apt: 58 packages: 59 - devscripts 60 - debhelper 61 - dput 62 - fakeroot 63 script: 64 - go run build/ci.go debsrc -signer "Go etsc Linux Builder <getsc-ci@etsccoin.com>" -upload ppa:etsc/etsc 65 66 # This builder does the Linux Azure uploads 67 - if: type = push 68 os: linux 69 dist: trusty 70 sudo: required 71 go: 1.11.x 72 env: 73 - azure-linux 74 git: 75 submodules: false # avoid cloning etsc/tests 76 addons: 77 apt: 78 packages: 79 - gcc-multilib 80 script: 81 # Build for the primary platforms that Trusty can manage 82 - go run build/ci.go install 83 - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 84 - go run build/ci.go install -arch 386 85 - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 86 87 # Switch over GCC to cross compilation (breaks 386, hence why do it here only) 88 - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross 89 - sudo ln -s /usr/include/asm-generic /usr/include/asm 90 91 - GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc 92 - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 93 - GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc 94 - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 95 - GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc 96 - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 97 - go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc 98 - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 99 100 # This builder does the Linux Azure MIPS xgo uploads 101 - if: type = push 102 os: linux 103 dist: trusty 104 services: 105 - docker 106 go: 1.11.x 107 env: 108 - azure-linux-mips 109 git: 110 submodules: false # avoid cloning etsc/tests 111 script: 112 - go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v 113 - for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done 114 - go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 115 116 - go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v 117 - for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done 118 - go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 119 120 - go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v 121 - for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done 122 - go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 123 124 - go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v 125 - for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done 126 - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload getscstore/builds 127 128 # This builder does the Android Maven and Azure uploads 129 - if: type = push 130 os: linux 131 dist: trusty 132 addons: 133 apt: 134 packages: 135 - oracle-java8-installer 136 - oracle-java8-set-default 137 language: android 138 android: 139 components: 140 - platform-tools 141 - tools 142 - android-15 143 - android-19 144 - android-24 145 env: 146 - azure-android 147 - maven-android 148 git: 149 submodules: false # avoid cloning etsc/tests 150 before_install: 151 - curl https://storage.googleapis.com/golang/go1.11.2.linux-amd64.tar.gz | tar -xz 152 - export PATH=`pwd`/go/bin:$PATH 153 - export GOROOT=`pwd`/go 154 - export GOPATH=$HOME/go 155 script: 156 # Build the Android archive and upload it to Maven Central and Azure 157 - curl https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip -o android-ndk-r17b.zip 158 - unzip -q android-ndk-r17b.zip && rm android-ndk-r17b.zip 159 - mv android-ndk-r17b $HOME 160 - export ANDROID_NDK=$HOME/android-ndk-r17b 161 162 - mkdir -p $GOPATH/src/github.com/etsc 163 - ln -s `pwd` $GOPATH/src/github.com/etsc 164 - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload getscstore/builds 165 166 # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads 167 - if: type = push 168 os: osx 169 go: 1.11.x 170 env: 171 - azure-osx 172 - azure-ios 173 - cocoapods-ios 174 git: 175 submodules: false # avoid cloning etsc/tests 176 script: 177 - go run build/ci.go install 178 - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload getscstore/builds 179 180 # Build the iOS framework and upload it to CocoaPods and Azure 181 - gem uninstall cocoapods -a -x 182 - gem install cocoapods 183 184 - mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak 185 - sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb 186 - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi 187 188 - xctool -version 189 - xcrun simctl list 190 191 # Workaround for https://github.com/golang/go/issues/23749 192 - export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc' 193 - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload getscstore/builds 194 195 # This builder does the Azure archive purges to avoid accumulating junk 196 - if: type = cron 197 os: linux 198 dist: trusty 199 go: 1.11.x 200 env: 201 - azure-purge 202 git: 203 submodules: false # avoid cloning etsc/tests 204 script: 205 - go run build/ci.go purge -store getscstore/builds -days 14