mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 03:26:39 +01:00
Compare commits
2 Commits
c1
...
feature/tr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bffc894c62 | ||
|
|
3d81ae3d8b |
14
.travis.yml
14
.travis.yml
@@ -4,12 +4,22 @@ language: go
|
||||
go:
|
||||
- "1.12"
|
||||
|
||||
# Travis overrides the GOARCH env var probably in its `travis_setup_go`
|
||||
# function, so we need a work around...
|
||||
jobs:
|
||||
include:
|
||||
- name: "Unit Tests 64 bit arch"
|
||||
env: GOARCH="amd64"
|
||||
env:
|
||||
- XGOARCH="amd64"
|
||||
- name: "Unit Test 32 bit arch"
|
||||
env: GOARCH="386"
|
||||
env:
|
||||
- XGOARCH="386"
|
||||
|
||||
env:
|
||||
- GO111MODULE=on
|
||||
|
||||
before_install:
|
||||
- export GOARCH=$XGOARCH
|
||||
|
||||
script:
|
||||
- go test -v ./...
|
||||
|
||||
11
utils/showarchbits_test.go
Normal file
11
utils/showarchbits_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/bits"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestShowArchBits(t *testing.T) {
|
||||
fmt.Printf("Architecture is %v bits\n", bits.UintSize)
|
||||
}
|
||||
Reference in New Issue
Block a user