CI: Setup env before running tests

Some of the included files sometimes need the env file to exist
This commit is contained in:
Vishesh Handa
2020-04-10 13:47:35 +02:00
parent cb126c733a
commit 6922c1a2ae

View File

@ -5,6 +5,9 @@ jobs:
- image: vhanda/flutter-android:latest - image: vhanda/flutter-android:latest
steps: steps:
- checkout - checkout
- run:
name: Setup Flutter Env
command: dart ./scripts/setup_env.sh
- run: - run:
name: Test name: Test
command: flutter test -j 1 command: flutter test -j 1
@ -20,9 +23,6 @@ jobs:
- run: - run:
name: Create Android Key file name: Create Android Key file
command: echo "$ANDROID_KEY_FILE" | base64 -di > android/key.properties command: echo "$ANDROID_KEY_FILE" | base64 -di > android/key.properties
- run:
name: Setup Flutter Env
command: dart ./scripts/setup_env.sh
- run: - run:
name: Build name: Build
command: ./scripts/build.sh command: ./scripts/build.sh