diff --git a/.circleci/config.yml b/.circleci/config.yml index 363936628..988dccba4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,14 +4,17 @@ jobs: docker: - image: blixtwallet/blixtwallet:latest steps: - - run: go get golang.org/x/tools/cmd/goimports - run: go get golang.org/x/tools/go/packages + - run: go get golang.org/x/tools/cmd/goimports - run: go get golang.org/x/mobile/cmd/gomobile - run: gomobile init - - run: go get -u -v github.com/lightninglabs/falafel + - run: GO111MODULE=on go get github.com/golang/protobuf/protoc-gen-go@v1.3.2 + - run: GO111MODULE=on go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.14.3 + - run: GO111MODULE=on go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v1.14.3 + - run: GO111MODULE=on go get -u -v github.com/lightninglabs/falafel - run: go get -d github.com/lightningnetwork/lnd - - run: cd $GOPATH/src/github.com/lightninglabs/falafel && git checkout v0.7 && go install - - run: cd $GOPATH/src/github.com/lightningnetwork/lnd && git checkout v0.10.2-beta && sed -i 's/use_prefix="0"/use_prefix="1"/g' mobile/gen_bindings.sh && make android tags="routerrpc walletrpc signrpc invoicesrpc" + - run: cd $GOPATH/src/github.com/lightningnetwork/lnd + - run: cd $GOPATH/src/github.com/lightningnetwork/lnd && git checkout v0.12.0-beta && sed -i 's/use_prefix="0"/use_prefix="1"/g' mobile/gen_bindings.sh && make android tags="routerrpc walletrpc signrpc invoicesrpc" - persist_to_workspace: root: /go/src/github.com/lightningnetwork/lnd paths: @@ -28,9 +31,9 @@ jobs: - run: git submodule update --init - run: yarn build-tor-lib - run: yarn gen-proto - - run: yarn test + # - run: yarn test # Compile a bundled dev build https://stackoverflow.com/a/56520746 - - run: ./node_modules/.bin/react-native bundle --platform android --dev false --entry-file index.ts --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ + - run: ./node_modules/.bin/react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ - run: cd android && ./gradlew assembleChainmainnetNormalDebug && ./gradlew assembleChaintestnetNormalDebug - store_artifacts: path: android/app/build/outputs diff --git a/Dockerfile b/Dockerfile index 3c26b21f4..b20fca02e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ENV LANG C.UTF-8 # Golang RUN apt-get update && apt-get install -qq -y curl unzip -RUN curl -o go.tgz https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz +RUN curl -o go.tgz https://dl.google.com/go/go1.15.8.linux-amd64.tar.gz RUN tar -C /usr/local -xzf go.tgz ENV GOPATH /go ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH