Skip to content

Commit

Permalink
feat(circleci): add golang mac os install
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Froment <sfroment42@gmail.com>
  • Loading branch information
sfroment committed Aug 6, 2018
1 parent 9512117 commit 6024324
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion .circleci/config.yml
Expand Up @@ -152,7 +152,7 @@ jobs:
client.rn.android:
working_directory: ~/go/src/github.com/berty/berty/client/react-native/mobile/android
docker:
- image: sfroment/test:lastest
- image: sfroment/test:lastest #Fix me when we get berty docker account
steps:
- checkout:
path: ~/go/src/github.com/berty/berty/
Expand Down Expand Up @@ -187,7 +187,49 @@ jobs:
command: |
time bundle exec fastlane android beta
client.rn.ios:
working_directory: ~/go/src/github.com/berty/berty
macos:
xcode: "9.0"
steps:
- restore_cache:
key: ios-golang-{{ .Environment.GOVERSION }}-2

- run:
name: install-go
command: |
if [ ! -f ~/go-install/go/bin/go ]; then
cd ~ && git clone https://github.com/udhos/update-golang
cd ~/update-golang && mkdir ~/go-install && sudo DESTINATION=~/go-install ./update-golang.sh
fi
echo "export PATH=~/go-install/go/bin/:~/go/bin:$PATH" >> $BASH_ENV
- run:
name: install gomobile
command: |
if [ ! -f ~/go/bin/gomobile ]; then
go get golang.org/x/mobile/cmd/gomobile
cd ~/go/src/golang.org/x/mobile
git remote add upstream git@github.com:sfroment/mobile
git fetch upstream
git cherry-pick 1b1535a2ec50640fac08cd318cf1d557e198e94d
go install golang.org/x/mobile/cmd/gomobile
gomobile init
fi
- save_cache:
key: ios-golang-{{ .Environment.GOVERSION }}-2
paths:
- ~/go
- ~/go-install

- checkout

- run:
name: install core
working_directory: ~/go/src/github.com/berty/berty/client/react-native/gomobile
command: |
make core.build.ios
workflows:
Expand All @@ -201,3 +243,4 @@ workflows:
- client.rn.android:
requires:
- client.rn.node
- client.rn.ios

0 comments on commit 6024324

Please sign in to comment.