Skip to content

Commit

Permalink
Merge pull request #1 from punksta/travis
Browse files Browse the repository at this point in the history
Travis ci
  • Loading branch information
punksta authored Apr 20, 2019
2 parents 357f7bc + ea77cb7 commit 59b73a4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
matrix:
include:
- stage: test
language: node_js
node_js: 11.14.0
install: npm ci
script: npm run flow

- stage: build_android
language: android
jdk: openjdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
android:
components:
- platform-tools
- tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- extra-google-m2repository
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- nvm install 11
- node --version
- chmod +x ./android/gradlew

install:
- npm ci
- cd android
- ./gradlew clean
script:
- ./gradlew assembleRelease

3 changes: 2 additions & 1 deletion src/containers/GameBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ class GameBoard<ItemT> extends React.Component<Props<ItemT>, State<ItemT>> {
if (GameBoard.shouldUseActionType()) {
const actionItems = props.gameSettings.uniqueItems
.map((item, index) => [item, index])
.filter(([item]) => item.action);
// $FlowFixMe
.filter(([item]) => item['action']);

[item, index] = actionItems[getRandomIndex(actionItems.length)];
} else {
Expand Down

0 comments on commit 59b73a4

Please sign in to comment.