https://github.com/twct/devops-engineer-exercise
https://github.com/twct/devops-engineer-exercise
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/twct/devops-engineer-exercise
- Owner: twct
- Created: 2022-12-05T02:16:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T19:06:31.000Z (over 3 years ago)
- Last Synced: 2025-02-13T09:37:26.836Z (over 1 year ago)
- Language: Kotlin
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# devops-engineer-exercise
This repo contains instructions for building the Swordle app, for iOS and Android.
## Release build instructions
This project makes use of the Bazel build system with iOS, and Gradle for Android. The recommend way to get started with Bazel is with [bazelisk](https://github.com/bazelbuild/bazelisk).
The version of Bazel that is known to work is pinned in the [.bazelversion](https://github.com/twct/devops-engineer-exercise/blob/main/.bazelversion) file, so once you have Bazel installed, you should be able to simply run the `build.sh` file, or follow the individual instructions below.
### iOS
#### Build
```sh
$ bazel build //iOS:Swordle
```
#### Run Tests
```sh
$ bazel test //iOS/SwordleTests:SwordleTests
$ bazel test //iOS/SwordleUITests:SwordleUITests
```
#### Run UI Tests
```sh
$ bazel test //iOS/SwordleUITests:SwordleUITests
```
### Android
#### Build
```sh
$ cd Android && ./gradlew assembleRelease && cd ..
```
#### Run Tests
```sh
$ cd Android && ./gradlew test && cd ..
```