This repository has been archived by the owner on Feb 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathcircle.yml
42 lines (38 loc) · 1.68 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
machine:
environment:
TARGET_SDK_VERSION: 25
TOOLS_VERSION: 25.2.4
BUILD_TOOLS_VERSION: 25.0.2
GHOST_DIR: ghost
GHOST_VERSION: 1.15.0
java:
version: oraclejdk8
# recommended Node version from https://docs.ghost.org/docs/supported-node-versions
node:
version: 6.9
dependencies:
pre:
- if ! $(grep -q "Revision="$TOOLS_VERSION $ANDROID_HOME/tools/source.properties); then echo y | android update sdk --no-ui --all --filter "tools"; fi
- if [ ! -e $ANDROID_HOME/build-tools/$BUILD_TOOLS_VERSION ]; then echo y | android update sdk --no-ui --all --filter "build-tools-"$BUILD_TOOLS_VERSION; fi
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository,android-"$TARGET_SDK_VERSION
cache_directories:
- /usr/local/android-sdk-linux/tools
- /usr/local/android-sdk-linux/build-tools/$BUILD_TOOLS_VERSION
- $HOME/.cache/yarn
override:
- JOBS=2 ./tests/ghost-setup.sh $GHOST_DIR $GHOST_VERSION password
# actual build and test
# can't build/test release because Fabric API keys are not available in CI
test:
pre:
- node $GHOST_DIR/index.js:
background: true
- sleep 10
- curl -vvvv -d 'setup[0][name]=User' -d 'setup[0][email][email protected]' -d 'setup[0][password]=ghosttestpwd' -d 'setup[0][blogTitle]=My Blog' http://localhost:2368/ghost/api/v0.1/authentication/setup/
override:
- ./gradlew assembleDebug -PdisablePreDex --console=plain
- ./gradlew testDebug -PdisablePreDex --console=plain
# copy test results to the test results directory
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;