forked from scality/cloudserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
53 lines (49 loc) · 1.5 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
43
44
45
46
47
48
49
50
51
52
53
---
general:
branches:
ignore:
- /^ultron\/.*/ # Ignore ultron/* branches
artifacts:
- coverage/
machine:
node:
version: 4.5.0
ruby:
version: "2.0"
environment:
CXX: g++-4.9
dependencies:
post:
- sudo pip install flake8 yamllint
# s3cmd dependencies
- sudo apt-get install -y -q python-dateutil python-magic
- wget http://launchpadlibrarian.net/222422124/s3cmd_1.6.0-2_all.deb
- sudo dpkg -i s3cmd*.deb
# fog and ruby testing dependencies
- gem install fog
- gem install mime-types
- gem install rspec
- gem install json
- gem install digest
# java sdk dependencies
- sudo apt-get install -y -q default-jdk
test:
override:
- npm run --silent lint -- --max-warnings 0
- npm run --silent lint_md
# lint the python used for testing
- flake8 $(git ls-files '*.py')
- yamllint $(git ls-files '*.yml')
- mkdir -p $CIRCLE_TEST_REPORTS/unit
- npm run unit_coverage
- S3BACKEND=mem npm start & sleep 15 &&
cd ./tests/functional/jaws && mvn test
- S3BACKEND=mem npm start & sleep 4 && npm run ft_test;
- S3BACKEND=mem npm start & sleep 4 &&
ENABLE_KMS_ENCRYPTION=true npm run ft_test;
- S3BACKEND=file S3VAULT=mem npm start & sleep 15 && npm run ft_test;
- rm -rf localData/* localMetadata/*
- S3BACKEND=file S3VAULT=mem npm start & sleep 15 &&
ENABLE_KMS_ENCRYPTION=true npm run ft_test;
- S3BACKEND=mem npm start & sleep 15 &&
cd tests/functional/fog && rspec tests.rb