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