Skip to content

Commit

Permalink
Fix CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjoberg committed Feb 16, 2021
1 parent 4bbc6bb commit a487e76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- run: GO111MODULE=on go get github.com/grpc-ecosystem/grpc-gateway/[email protected]
- run: GO111MODULE=on go get github.com/grpc-ecosystem/grpc-gateway/[email protected]
- 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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a487e76

Please sign in to comment.